Closed Thread Icon

Topic awaiting preservation: setting nested layer width in opera (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8238" title="Pages that link to Topic awaiting preservation: setting nested layer width in opera (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: setting nested layer width in opera <span class="small">(Page 1 of 1)</span>\

 
lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-14-2002 00:52

i'm having problems with opera while trying to set the width of a nested layer.
- i (try to) use style.width
- it works with the parent layer (!!!!!)
anyone know why this is happening? bug in opera?
opera supposed to be dom, right? i know it has implemented mainly getElementById() (some dom support ) but that's all what i need at this time. any help is appreciated. thanks.

p.s. i CAN reposition the same nested layer. lol



[This message has been edited by lacapaca (edited 07-14-2002).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-14-2002 01:00

Must see code. Preferably working version of script.

lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-14-2002 01:07

well, ok. but it's not much.

i get the reference to the layer object by getElementById.

then ref.style.width = new_width;

that's it!

as i said, i have two divs nested. for the inner div it doesn't work. for the other one it does !!@@!!@?

lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-14-2002 02:49

err. i looked at dhtmlcentral.com's main page and the windows there seem to have the same problem. (try to resize them in opera...)

could this be an opera bug and not my incompetency?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-14-2002 11:29

Yeah, it's a bug in Opera. When you try to resize nested layer it will resize it *internally*, but it won't update text or whatever you have inside that layer. For example, if you try to define different background color for nested layer, you'll see that it resized the layer (according to the background color), but text will stay outside new dimensions...


lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-14-2002 11:51

thanks, mr.Max. i thought so too.

the page will look somewhat ugly in opera, but that's not really my problem, is it?

thanks again for your thoughts.

« BackwardsOnwards »

Show Forum Drop Down Menu