PDA

View Full Version : getBox in Opera fails. A bug?



jsakalos
2 Jun 2007, 11:31 AM
The following code runs fine in FF and IE but causes error(s) in Opera [email protected]:




var box = Ext.fly(document.body).getBox();

It this an Ext bug, Opera bug, or I shouldn't call getBox on document.body?


BTW, what's the proper cross-browser method to get browser's window size?

jack.slocum
2 Jun 2007, 11:34 AM
getBox won't work on the body as it is not a standard element. Try getViewSize()

jsakalos
2 Jun 2007, 2:39 PM
Thanks Jack,

helpful as always. :)