Ahh thanks Wizzud, I'll dig a little deeper. Thanks. -- Brandon Aaron
On 8/15/07, Wizzud <[EMAIL PROTECTED]> wrote: > > > > Brandon, > There is actually a slight problem in this particular scenario, because > $(document).height() is returning 0. > Ext's jquery adaptor IS maxing out window and document, but because > document > is returning 0, window height is being used as the greater. > The only property I can find (using FireBug) that returns a height value > in > this scenario is document.documentElement.scrollHeight. > > Using the code given in the EXT forum, I put in some tests... > Ext.onReady(function(){ > var vw = $(window).width() > , vh = $(window).height() > , bw = $(document).width() > , bh = $(document).height() > , d = document.documentElement.scrollHeight > ; > Ext.MessageBox.confirm('Confirm', 'Scroll the page up and down to > see > below the mask'); > }); > > Breaking at "Ext.MessageBox...." showed > > vh = 529 > bh = 0 > d = 1320 > > Width values seem to be fine. > > I've only looked at this (briefly) in Firefox, no other browser. > I don't know if this will help at all. > > > Brandon Aaron wrote: > > > > I responded to the thread over on the ext forums. Here is what I said: > > > > The jQuery Dimensions plugin simply returns the document height or the > > window height. Returning the Math.max( $(document).height(), > > $(window).height() ); for $(document).height() would not return the > actual > > document height. > > > > -- > > Brandon Aaron > > > > On 8/14/07, Neil <[EMAIL PROTECTED]> wrote: > >> > >> > >> Hi there. > >> > >> I posted a bug concerning modals not masking the whole page with > >> jQuery on the Ext forum. > >> > >> Jack Slocum has responded saying "The problem was reported a while > >> back to jQuery. It has to do with viewport/document size not returning > >> the largest value. If the document height is smaller than the window > >> height, then the document height should be the window height. In > >> jQuery that is not the case. You may want to log a bug there." > >> > >> The full write up on producing the bug is at > >> http://extjs.com/forum/showthread.php?t=11086. > >> > >> Any advice on an interim workaround until the core is fixed would be > >> really appreciated. > >> > >> Regards, > >> Neil. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Modals-don%27t-mask-whole-page-with-Ext-and-jQuery-tf4272596s15494.html#a12167179 > Sent from the JQuery mailing list archive at Nabble.com. > >