Because of strange side effects using GWT FlowPanels, I've testet the TileLayout with layout policy flow. The widgets to render are simple buttons. I will replace them when the TilesLayout works. Unfortunately the buttons are overlapped and not correctly resized as it's shown in the screenshot attached.
This is my test code:
Do I have something forgotten? BTW if I set the tileHMargin property my firefox got frozen.
This is my test code:
Code:
public void onModuleLoad() { TileLayout tile = new TileLayout(); tile.setSize("100%", "100%"); tile.setLayoutPolicy(TileLayoutPolicy.FLOW); tile.setOverflow(Overflow.VISIBLE); tile.setAutoWrapLines(true); tile.setShowEdges(true); tile.setTileHeight(25); Button button = new Button("askldjfa_faaskdfjksadfsfa.txt"); button.setOverflow(Overflow.VISIBLE); button.setAutoWidth(); tile.addTile(button); button = new Button("as.png"); button.setAutoWidth(); button.setOverflow(Overflow.VISIBLE); tile.addTile(button); button = new Button("afa_fasfa.txt"); button.setOverflow(Overflow.VISIBLE); tile.addTile(button); tile.draw(); }
Comment