kew44/simplemodal

Patch to resolve getDimensions problem in iphone

Opened this issue · 0 comments

Hi,

This patch resolves some problems in iphone

____

getDimensions: function () {
            // fix a jQuery bug with determining the window height/width - use innerHeight/innerWidth if available
            var s = this,
                wih = typeof window.innerHeight === 'undefined' ? wndw.height() : window.innerHeight,
                wiw = typeof window.innerWidth === 'undefined' ? wndw.width() : window.innerWidth;

                        d = [doc.height(), doc.width()];
            w = [wih, wiw];
        },

______

Regards,
OR

Original issue reported on code.google.com by osvaldo....@gmail.com on 18 Oct 2013 at 11:30