Reputation: 15018
If I set a sufficiently long label
for any kind of form element, or the title
of a FieldSet
, it just grows horizontally forever if I set labelAlign
to right
. How can I force these to wrap to the next line instead of creating horizontal scrollbars?
Upvotes: 1
Views: 8377
Reputation: 5503
I think using the labelWidth property for a field will give you the desired result.
Upvotes: -2
Reputation: 7225
You will need to override the default CSS which forbids wrapping (white-space: nowrap
). This should do the job:
.x-form-fieldset-title,
.x-form-label {
white-space: normal;
}
Example:
Upvotes: 8