Winodw jumps around in Firefox

When moving from one modal box to another (e.g. from a form submit to the result box), I'm getting the second modal box (called by closing any existing ones then opening a new one) being positioned in one place, then moving to another. This only seems to happen in Firefox (2, haven't tested 1.5 yet) -- Safari and IE seem fine.

Thanks Chris

Posted April 30th, 2007 at 4:43am by ChrisT

Control.Modal jumps around in firefox for me as well. I'll look into fixing this with a window.setTimeout() solution. Thanks for the feedback - Ryan

Posted May 1st, 2007 at 1:23pm by ryan

I fixed this by setting top and left to null in the container's style attribute when closing the window. So around line 336: Control.Modal.container.setStyle({left: null, top: null});

Also added a 200 millisecond timeout around the call to center to stop jumping around when showing the modal on larger windows. This seemed the optimum time (to allow the position to be worked out correctly).

Disclaimer: I'm pretty much a js newbie so YMMV

Posted May 26th, 2007 at 11:04am by ChrisT

Login or Register to Post