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: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Mozdev Project Owners List <[email protected]>
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?









_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to