RE: Resizing layers in Firefox

"Gale, David" <[email protected]>
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
Kenneth Chr. Nilsen wrote:
> 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.

Do wh and ww have the unit of measure appended?  That is, does wh = 42,
or does wh = '42 px'?  IE is willing to assume a pixel unit of measure,
but Firefox (properly) does not.

-David


------------------------ 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.