From: Kevin <ke...@ke...> - 2003-04-22 19:21:06
|
"Raymond Irving" <xw...@ya...> wrote: > > --- ramesh pallikara nair <ram...@ya...> > wrote: > > hi, > > > > setting table width="100%" on a dynlayer content > > doesn't seem to work in ns4. > > is there a workaround that can be done to achieve > > this > > This is a problem if layers where created without a > width. Try setting the width of the layer and see if > that works: > > var t='<table width="100%"><tr><td>NS4 > :(</td></tr></table>'; > var lyr = new DynLayer(t,10,10,100,100); > > IMO I think there should be a default width/height for > dynlayers. So if the user did new DynLayer() then w,h > would be set to 0,0. If the user needs the layer to be > set to the size of the content then somthing like > DynLayer(null,100,100,'auto','auto') I disagree with setting w,h to 0,0. Null, null can be detected for - rather than using the valid values of 0,0. This is useful when assigning w,h values from the rendered element's css. Passing string 'auto' for w,h is fine for telling assignElement to default to the size of the content. This goes for x,y and other constructor defaults. I'm looking at using style classes and relative positioning in NS4/IE4/Moz. - Kevin > Any feedback? > > -- > Raymond Irving > > > > > > best regardz, > > ramesh pallikara > > > > __________________________________________________ > > Do you Yahoo!? > > The New Yahoo! Search - Faster. Easier. Bingo > > http://search.yahoo.com > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo > http://search.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ |