Christopher Finke wrote:

> Is there an way to wrap XUL elements just like text wraps in an HTML 
> paragraph?  I have a need to wrap an undetermined number of clickable 
> pieces of text inside a larger XUL element that expands to fit 3/4 of 
> it's container's width.  So far, whenever I add too many sub-elements, 
> it just stretches the container wider without wrapping to a second line.

Both the <label> and <description> elements support wrapping text. 
Simply set the text as the .textContent rather than as the .label, or in 
the XUL as <description>This text will wrap</description>. Note that 
they prefer not to wrap, so you typically need a max-width style to 
force the issue.
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to