Correction (forgot to fire of the setSize method for anything that's
not IE too):

setSizeWrapper : function()
{
   if (client.isIE)
   {
      clearTimeout(dashboard.ieresizeTimer);
      dashboard.ieresizeTimer = setTimeout("dashboard.setSize()",
500);
   }
   else
   {
      dashboard.setSize()",
   }
}


On Dec 8, 10:24 pm, Rob Cluett <rob.clu...@gmail.com> wrote:
> Thank you.  Based on your response I'm doing the below.  Simply
> setting and then clearing a timer if the onResize event is fired
> before the timer expires.  For those following this method be aware
> that "client.isIE" is particular to my code and merely test if the
> users browser is in fact IE.
>
> If for more than a 1/2 second the onResize event does not occur it
> will run the setSize method which adjusts all the elements in the
> viewport.  If the browser is resized before the timeout then the
> timeout resets.  It does work well. Not perfect but does adjust
> without blocking the browser.  I think it could benefit from a mask of
> sorts so the user does not have to watch the elements obscure for that
> 1/2 second.  The completion of the setSize method does take some time
> to complete.  1-2 seconds but my thinking is that this is due to IE's
> slow DOM :)
>
> setSizeWrapper : function()
> {
>    if (client.isIE)
>    {
>       clearTimeout(dashboard.ieresizeTimer);
>       dashboard.ieresizeTimer = setTimeout("dashboard.setSize()",
> 500);
>    }
>
> }
>
> On Dec 8, 4:41 pm, david <david.brill...@gmail.com> wrote:
>
>
>
> > Hi Rob,
>
> > in fact there is two different trouble:
> > first you'll set the onresize event to many element ==> think using
> > event delegation !
> > next, the onresize event in FF for exemple is send one the mouse have
> > stop mouving (even if the event is not finished yet, means you did not
> > release the mouse button) BUT in IE, the onresize event is submit
> > every time the mouse is mouving, like the mousemove event :((
>
> > So use event delegation and in IE set a sorte of timeout to wait a
> > certain time before recalculate this event !
>
> > --
> > david
>
> > On 8 déc, 19:03, Rob Cluett <rob.clu...@gmail.com> wrote:
>
> > > I'm posting this here because with all of the element resizing I am
> > > doing with prototype I am running into the IE bug where onResize is
> > > fired on all elements when the IE browser window is resized.  It
> > > basically brings my application to a halt.  Is there anything within
> > > prototype that corrects this behavior in IE or is there an adequate
> > > workaround that anyone came up with?
>
> > > My apologies if this is deemed off-topic.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to