angular-deckgrid icon indicating copy to clipboard operation
angular-deckgrid copied to clipboard

CSS grid configuration not found - IOS 8 Simulator

Open JeffButler opened this issue 10 years ago • 8 comments

I checked out: https://github.com/akoenig/angular-deckgrid/issues/27 where I found

.deckgrid[deckgrid]::before { content: '5 .column.size-1-5'; visibility: hidden; font-size: 0; }

and firebean3's comment:

I added an element before the deckgrid inside the tab with the attribute ng-init="initialised=true;" I added to the deckgrid the attribute ng-if="initialised"

which fixed my initial issue in Chrome. However, with IOS 8 simulator I am getting the same No CSS grid configuration bug with these fixes.

Has anyone found a workaround for this issue?

JeffButler avatar Jan 05 '15 18:01 JeffButler

same problem... but in Safari, I suppose that if we found the solution, both will work as ios 8 use safari i think.

I continue to search, let me know if you found something, i will do the same, thx

sovanna avatar Apr 07 '15 08:04 sovanna

ça me met les nerfs que ça ne fonctionne pas, par contre, nickel sur chrome et sur firefox, so sad :(

sovanna avatar Apr 07 '15 09:04 sovanna

i've added a fucking hack in angular-deckgrid.js, in Deckgrid.prototype.$$getLayout func,

if (!content || content === '') {
    content = '4 .column.column-1-4';
}

it allows me to have kind of "default" value..

sovanna avatar Apr 07 '15 10:04 sovanna

Thanks! I ended up doing a crazy hack as well to get it to work

JeffButler avatar Apr 07 '15 15:04 JeffButler

Also had this issue, the hack proposed by sovanna works.

jamesblackwell avatar Apr 21 '15 18:04 jamesblackwell

Thanks sovanna, I went with a more responsive (requires jquery) approach:

            if (!content || content === '') {
                var width = $(window).width();
                if (width > 1199) {
                    content = '5 .column.column-1-5';
                } else if (width > 991) {
                    content = '4 .column.column-1-4';
                } else if (width > 767) {
                    content = '3 .column.column-1-3';
                } else if (width > 479) {
                    content = '2 .column.column-1-2';
                } else {
                    content = '1 .column.column-1-1';
                }
            }

Kelvin-Chu avatar Jan 31 '16 00:01 Kelvin-Chu

Kelvin-Chu, you saved my life! thanks!

dmytro-kushnir avatar Jun 28 '17 17:06 dmytro-kushnir

@DIma-Kush @Kelvin-Chu here's non-jQuery version of window width: $window.innerWidth

simison avatar Jun 29 '17 11:06 simison