Hybrid View
-
5 Jan 2012 9:10 AM #1
How to control width of label in FieldLabel?
How to control width of label in FieldLabel?
In using GXT 3.x how can I control the width of the label when using a FieldLabel? I.e. when using the following code it gives the label way too much room.
I've tried to set the width via...and it doesn't make any difference.Code:VerticalLayoutContainer v= new VerticalLayoutContainer(); TextField a = new TextField(); a.setAllowBlank(true); a.setReadOnly(true); final FieldLabel aLabel = new FieldLabel(a, "A"); v.add(aLabel , new VerticalLayoutContainer.VerticalLayoutData(1, -1));
Seems like aLabel.setLabelWidth(25) should work...is this a bug in 3.x?Code:aLabel.setLabelPad(0); aLabel.setLabelWidth(25); aLabel.setPixelSize(25, -1);
-
5 Jan 2012 9:33 AM #2
Yes this is a known bug and is already tracked by us.
-
5 Jan 2012 9:34 AM #3
http://www.sencha.com/forum/showthre...mpanel-widgets
First found thread with using the forum search
-
5 Jan 2012 9:43 AM #4
Thanks. Do you happen to have a public bug tracking system (e.g. JIRA) where I can watch this issue and get notified of progress?
-
5 Jan 2012 9:55 AM #5
We are updating the forum post if the issue got fixed.
-
14 May 2012 1:37 PM #6
is this fixed? I am still seeing this issue.
You found a bug! We've classified it as
EXTGWT-2112
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote