Hi,
Yes!
That's exactly what I want, it works now, I was bothered when I do set
the width and height of my components, but always
get two zero. As you say, jQuery set the value only when the DOM nodes
appended to document, right?
Again, the jLayout is awesome! Actually, I'm try to implement a new UI
widgets collection. And the jLayout really helps me a lot.
So, pretty thanks.
Best regards,
John
On Nov 12, 5:39 pm, Bram Stein <
b.l.st...@gmail.com> wrote:
> Hi,
>
> You need to add your dynamically generated DOM nodes to the document
> before jQuery's width and height methods return the values you set.
> The jLayout jQuery plugin uses these methods to retrieve the width and
> height for the elements it is called on, and they return 0 when the
> elements are not part of the document.
>
> Does that answer your question, or do you have some other requirements?
>
> Best regards,
>
> Bram
>