|
From: Raymond I. <xw...@ya...> - 2003-04-25 05:12:23
|
--- Benoit Marchant <mar...@ma...> wrote:
> If the size is set in percent isn't there an api on
> the div themseves
> to get their actual size ?
The only function that I'm aware of is the
getContentWidth/Height which returns the size of the
layers content. This does not return the real width
See the contentwidth_height.html test page inside the
tshoot/ folder. This is currently inside cvs
--
Raymond Irving
> Benoit
>
> On Thursday, April 24, 2003, at 03:41 PM, Raymond
> Irving wrote:
>
> > Hi,
> >
> >
> > When using setClass('whatever',true) you should
> always
> > create dynlayer with width and height or 0. This
> is to
> > prevent dynlayer from attempting to autosize the
> > layer.
> >
> > It was suggested once that we get the width and
> the
> > height from the style of the layer, but that might
> not
> > be a good thing to do as style sheets can use
> > different values for width and height:
> >
> > width:100px; height:100px;
> > width:100%; height:100%;
> > width:100cm; height:100cm;
> >
> > If a layer's style width inside the style sheet
> was
> > set to 100% then the dynlayer would report the
> wrong
> > size, correct?
> >
> > Any thoughts on this? Should we document that
> users
> > set the width and height to 0,0 when using style
> > sheets? Or should we enable
> DynLayer.assignElement()
> > to first check for a valid css width/height before
> > calling getContentWidth/Height?
> >
> >
> >
> > --
> > Raymond Irving
> >
> > __________________________________________________
> > 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
|