PDA

View Full Version : [CLOSED] setIntStyleAttribute on a TextField only affect the text box, not the label



bigmountainben
10 May 2009, 7:21 AM
name.setEmptyText("A short description of the task");
name.setFieldLabel("Some Label");
// we have to do it at this level because otherwise gxt styles take over
name.setIntStyleAttribute("margin-top", 10);

The margin-top will only apply to the TextBox, not the entire Field entry (Field Label+Text Box).

This is in the build from last night.

Ben

sven
10 May 2009, 7:23 AM
This is not a bug. The label is bound to the layout and not to the component.


The margin-top will only apply to the TextBox, not the entire Field entry (Field Label+Text Box).

And that is correct. As you set the margin on the component, the textfield.

bigmountainben
10 May 2009, 7:26 AM
Ok thanks.