[Project_owners] Wrapping XUL elements
Eric H. Jung
eric.jung at yahoo.com
Fri Jun 22 10:11:58 PDT 2007
Updated to link to include the fact that the text must a a textnode child of <label/> or <description/>. It's unclear to me why the original author (Dave Townsend) specified class -moz-pre must be used.
----- Original Message ----
From: "eric.jung at yahoo.com" <eric.jung at yahoo.com>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Friday, June 22, 2007 12:46:16 PM
Subject: Re: [Project_owners] Wrapping XUL elements
>>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.<<
I didn't know about that. Neil, should I update http://developer.mozilla.org/en/docs/Code_snippets:Label_and_description with this info?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Project_owners