Hi,
I have a problem aligning a panel.
Here my code:
As you can see, I try to align the buttonPanel on the right side, but it is shown on the left.
I'm already going crazy. It is such an easy functionality and I don't get it.
Could someone help?
Thanks
GG
GWT: 2.5
SmartGWT: 3.0
Firefox 10.0.8
I have a problem aligning a panel.
Here my code:
Code:
public class SmartGwtTests implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
getPanel().draw();
}
private HLayout getPanel(){
HLayout titlePanel = new HLayout();
titlePanel.setWidth100();
titlePanel.setHeight100();
HLayout buttonPanel = new HLayout();
buttonPanel.setWidth(100);
buttonPanel.setHeight(30);
titlePanel.setBorder("2px solid blue");
buttonPanel.setBorder("2px solid red");
buttonPanel.setAlign(Alignment.RIGHT);
Button btn = new Button("Test");
buttonPanel.addMember(btn);
titlePanel.addMember(buttonPanel);
return titlePanel;
}
}
I'm already going crazy. It is such an easy functionality and I don't get it.
Could someone help?
Thanks
GG
GWT: 2.5
SmartGWT: 3.0
Firefox 10.0.8
Comment