PDA

View Full Version : BUG: BoxLayoutData setFlex(1) stopped working for ToolBar



mrjoe
4 Jun 2014, 11:20 AM
After upgrading to GXT 3.1 setFlex(1) is no longer working correctly.

In the image you can see that "Filter" button is no longer properly aligned to the right side of the toolbar, but instead is hidden from the user.
49220



CODE EXAMPLE

ToolBar actionToolBar = new ToolBar();
// ...
actionToolBar.add(reportsButton);
BoxLayoutData flex = new BoxLayoutData(new Margins(0, 5, 0, 0));
flex.setFlex(1);
actionToolBar.add(new Label(), flex);
actionToolBar.add(filterButton);