I use ext-gwt and I canβt figure out how to split the panel so that I have 2 widgets, one on each side of the resizable splitter, both widgets being 100% high and their width is variable.
In essence, I want something like:
----------------------------------------- | Widget1 | Widget2 | | | | | | | | | | | | | | <-|-> | | | | | | | | | | | | | -----------------------------------------
I tried this with BorderLayout, but I think that I am doing it wrong and it will not work (the vertical height of the widget will not occupy the entire screen). Can anyone help? Here is the last form of what I tried:
public void onModuleLoad() { Viewport v = new Viewport(); v.setLayout(new RowLayout(Orientation.HORIZONTAL)); ContentPanel panel1 = new ContentPanel(); panel1.setHeading("Panel 1"); ContentPanel panel2 = new ContentPanel(); panel2.setHeading("Panel 2"); v.add(panel1, new RowData(.3, 1)); v.add(new SplitBar(LayoutRegion.EAST, panel1)); v.add(panel2, new RowData(.7, 50)); RootPanel.get().add(v); }
Thanks!
source share