Re: Resizing layers in Firefox
Ian Petersen <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
Your problem may be due to the event that you're hooking. I seem to
recall that the two browsers raise resize events on different objects?
I might be imagining that.
I use code like this:
if(window.attachEvent) {
window.attachEvent('onresize', resizeListener);
} else if(window.addEventListener) {
window.addEventListener('resize', resizeListener, false);
}
to do something very similar to what you're doing and it works for me
in both IE and Mozilla.
Ian
On 02/12/05, Kenneth Chr. Nilsen <[email protected]> wrote:
> Hi all,
>
> I have made a webpage that partly uses a javascript to resize a couple of
> layers so that it will fit to the window when the window gets resized.
> This works fine with IE, but in Firefox nothing happands. Does anyone know
> how or if it's possible to do this with FF?
> I don't get an error in FF - it just seem to ignore it... :-(
>
> The script uses styles for setting new sizes, f.ex:
> -----8X--------------
> var mLay4 = new getObj('frmWorkarea'); // Custom (Quirkmodes) function (to
> get object for the different supported DOMs.
> mLay4.style.height = wh;
> mLay4.style.width = ww;
> -----8X--------------
> (note: replacing the getObj() with checking for DOM in place makes no
> difference.
> 'wh' and 'ww' are precalculated sizes based on window-geometry.
>
> Regards,
> Kenneth
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Unsubscribe
> [email protected]
>
> List info
> http://www.quirksmode.org/dom/list.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~->
Unsubscribe
[email protected]
List info
http://www.quirksmode.org/dom/list.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wdf-dom/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/