Firefox onresize bug

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    #1

    Firefox onresize bug

    Greetings,

    Does anyone know of a workaround for the onresize bug in Firefox?

    <body onresize="histo ry.go(0)">

    I've looked all around and can't seem to find a working workaround.

    David


  • Cédric Correa Luna

    #2
    Re: Firefox onresize bug

    Hi,

    <body onResize="histo ry.go(-1);"> works fine in FF.
    I presume "history.go(0); " works as well, the thing his "history.go (0)" just reloads the current page. May be that's why you won't see it move.

    You could also do :
    <script type="text/javascript">
    function Yo () {
    history.go(0) ;
    // OR window.location .reload() ;
    }
    window.onresize = Yo ;
    </script>

    Hope this helps ...

    Cédric

    David a écrit :[color=blue]
    > Greetings,
    >
    > Does anyone know of a workaround for the onresize bug in Firefox?
    >
    > <body onresize="histo ry.go(0)">
    >
    > I've looked all around and can't seem to find a working workaround.
    >
    > David
    >
    >[/color]

    Comment

    • David

      #3
      Re: Firefox onresize bug

      Normally that would work but Firefox version 1 doesn't support onresize. I
      think it has something to do with the tabs. I've heard about using css and
      setting the body to display:none and then display:block and the elements
      will realign but it doesn't work in all instances. Just hoping someone knew
      of a workaround in js.

      David





      "Cédric Correa Luna" <cedric@correal unaKILLSPAM.com > wrote in message
      news:423a9a4c$0 $821$8fcfb975@n ews.wanadoo.fr. ..[color=blue]
      > Hi,
      >
      > <body onResize="histo ry.go(-1);"> works fine in FF.
      > I presume "history.go(0); " works as well, the thing his "history.go (0)"[/color]
      just reloads the current page. May be that's why you won't see it move.[color=blue]
      >
      > You could also do :
      > <script type="text/javascript">
      > function Yo () {
      > history.go(0) ;
      > // OR window.location .reload() ;
      > }
      > window.onresize = Yo ;
      > </script>
      >
      > Hope this helps ...
      >
      > Cédric
      >
      > David a écrit :[color=green]
      > > Greetings,
      > >
      > > Does anyone know of a workaround for the onresize bug in Firefox?
      > >
      > > <body onresize="histo ry.go(0)">
      > >
      > > I've looked all around and can't seem to find a working workaround.
      > >
      > > David
      > >
      > >[/color][/color]


      Comment

      Working...