|
From: Kevin <ke...@ke...> - 2003-04-24 23:19:31
|
"Raymond Irving" <xw...@ya...> wrote:
> Hi All,
>
> In ns4 I was trying to used a <table> with a width of
> 100% to force text-wrapping inside a layer. The
> strange thing is that after page load I created a
> layer, set the HTML and then resize it but the <table>
> did not adjust to the new size of the layer.
I may have mentioned this before :) Isn't layer size in ns4
fixed? It may look as if the size changes but I think it's
just the clip region extending outside the layers fixed size
which is legal as is observed the content doesn't reflow.
Setting the clip.width value to w is the same as:
clip.right=clip.left+w;
Setting the clip.height value to h is the same as:
clip.bottom=clip.top+h;
There again I could be completely wrong.
-
Kevin
> See the example:
>
> var html='<table border="1" width="100%"><tr><td>This
> is an test layer that was created after page
> load</td></tr></table>';
>
> dynapi.onLoad(function(){
> var lyr = new DynLayer();
> dynapi.document.addChild(lyr); // note the layer is
> created here
> lyr.setSize(50,100); // change the size
> lyr.setHTML(html); // set layer's html
> lyr.setLocation(100,100);
> lyr.setSize(150,100); // change the size
> };
>
>
> Any ideas, any workarounds? Is this the very nature of
> ns4?
>
> PS. I noticed that the same thing occured in DynAPI
> 2.5
>
>
> --
> 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.../
|