Subj : Re: How can JS intercept relayout calls? To : Geoff From : Brendan Eich Date : Mon Dec 20 2004 06:57 pm Geoff wrote: > Hi, > > I've written an ASP.NET ComboBox, and mostly it works pretty well in IE > and Mozilla. (I'm using Firefox 1.0, by the way.) > > I've just come across this problem though. First of all, here's an > example of the problem in action: > > http://www.opinionatedgeek.com/DotNET/products/powerpack/ComboProblem.aspx > > If you click the button, it dynamically un-hides a DIV element, which > dynamically changes the layout. However, since I've used a clipped > absolutely-positioned SELECT to create the dropdown part of the > ComboBox, it's still stuck in the original position. > > I want it to follow the textbox part of the ComboBox, so it looks just > the way it should. > > I /think/ I want a Javascript event I can hook into to say a re-layout > has just occurred. Or the element I'm interested in has moved. Or > something. (IE has onmove and onresize, which I can use - check out > the same URL in IE.) > > Alternatively, I'm happy to re-jig things so they work properly in > Mozilla, whatever it is I need to do. I just don't know what. (I > can't use relative positioning, because then I can't clip it, but I > can't see any way of finding out I need to re-calculate the absolute > positioning.) > > I want it to work as well in Firefox as it does in IE. Any thoughts or > ideas appreciated. > > Cheers, Please post to the right newsgroup. See newsgroup: and followup-to: headers above. /be > > Geoff > .