durgaprassad7 / simplemodal

Automatically exported from code.google.com/p/simplemodal
0 stars 0 forks source link

Patch to resolve getDimensions problem in iphone #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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