5 Jan 2012 9:10 AM #1
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.
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));
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
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.
14 May 2012 3:35 PM #7
I believe it was fixed but I don't recall which RC version, which version are you using? You might want to try 3.0.0-rc2...that's the latest available in maven.
14 May 2012 4:44 PM #8
Actually I am using that version. I will try 3.0 from maven repository