From: Jordi \ilMaestro\ M. <jmi...@or...> - 2001-02-07 17:52:39
|
When you set the HTML into a layer before adding it to the document, the content is stored as an internal variable. When you add the dynlayer to the document, the phisical layer is created, size 0 0, and then the HTML writen into it. At that time, the browser is writing to a 0,0 sized layer, therefore centering the content makes it appear to the left of the layer. Resizing a layer does not force the content to be redrawn or rerendered. You should either specify the size of the layer before adding it to the doc or settting the HTML after you have resized it. Cya |