Hello,
I’m trying to build a simple Lemur container having a label & 2 buttons (see code below).
Reading here in the forum I thought that the default fill mode should be “even” so that all buttons per row will be in the same size but in my case the left button is stretched to the max and the right gets just enough size for its text.
How can I enforce the layout to give the buttons even size?
modifyEntityWindow = new Container();
lblModifierWindowHeader = new Label("Selected Model:");
modifyEntityWindow.addChild(lblModifierWindowHeader,0,0);
Button b1 = modifyEntityWindow.addChild(new Button("X-"),1,0);
b1.addClickCommands(new Command<Button>() {
@Override
public void execute( Button source ) {
String code=selectedObject+".move (x-1) in 0.1 second";
app.runPartialCode(code,null,false);
}
});
Button b2 = modifyEntityWindow.addChild(new Button("X+"),1,1);
b2.addClickCommands(new Command<Button>() {
@Override
public void execute( Button source ) {
String code=selectedObject+".move (x+1) in 0.1 second";
app.runPartialCode(code,null,false);
}
});