Fixed Layout

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@111610 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-02-03 11:22:15 +00:00 committed by Giancarlo Panichi
parent 6c62640187
commit 11296b8cff
1 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,7 @@ import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign; import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
import com.sencha.gxt.core.client.IdentityValueProvider; import com.sencha.gxt.core.client.IdentityValueProvider;
import com.sencha.gxt.core.client.Style.SelectionMode; import com.sencha.gxt.core.client.Style.SelectionMode;
import com.sencha.gxt.core.client.dom.ScrollSupport.ScrollMode;
import com.sencha.gxt.core.client.util.Margins; import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.data.client.loader.RpcProxy; import com.sencha.gxt.data.client.loader.RpcProxy;
import com.sencha.gxt.data.shared.ListStore; import com.sencha.gxt.data.shared.ListStore;
@ -173,13 +174,15 @@ public class DuplicatesRowsPanel extends FramedPanel implements
hBox.add(validatesButton, new BoxLayoutData(new Margins(2, 5, 2, 5))); hBox.add(validatesButton, new BoxLayoutData(new Margins(2, 5, 2, 5)));
hBox.add(deleteButton, new BoxLayoutData(new Margins(2, 5, 2, 5))); hBox.add(deleteButton, new BoxLayoutData(new Margins(2, 5, 2, 5)));
VerticalLayoutContainer v = new VerticalLayoutContainer(); VerticalLayoutContainer v = new VerticalLayoutContainer();
//v.setScrollMode(ScrollMode.AUTO); Set In GXT 3.0.1 v.setScrollMode(ScrollMode.AUTOY);
v.setAdjustForScroll(true);
v.add(columnsLabel, new VerticalLayoutData(-1, -1, new Margins(2, 1, 5, v.add(columnsLabel, new VerticalLayoutData(-1, -1, new Margins(2, 1, 5,
1))); 1)));
v.add(grid, new VerticalLayoutData(1, -1, new Margins(0))); v.add(grid, new VerticalLayoutData(1, -1, new Margins(0)));
v.add(hBox, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0))); v.add(hBox, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0)));
add(v, new VerticalLayoutData(-1, -1, new Margins(0))); add(v, new VerticalLayoutData(1, -1, new Margins(0)));
} }