Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@111507 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-01-28 11:45:39 +00:00
parent faf9c41329
commit 3ecc83897e
2 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.core.client.IdentityValueProvider;
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.data.client.loader.RpcProxy;
import com.sencha.gxt.data.shared.ListStore;
@ -200,7 +201,8 @@ public class DeleteColumnPanel extends FramedPanel implements
hBox.add(delete, new BoxLayoutData(new Margins(2, 5, 2, 5)));
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,
1)));
v.add(grid, new VerticalLayoutData(1, -1, new Margins(0)));

View File

@ -144,7 +144,8 @@ public class LabelColumnPanel extends FramedPanel implements
// columnsContainer.setHeight(getOffsetHeight(true)-50);
columnsLayoutContainer = new VerticalLayoutContainer();
columnsLayoutContainer.setScrollMode(ScrollMode.AUTO);
columnsLayoutContainer.setScrollMode(ScrollMode.AUTOY);
columnsLayoutContainer.setAdjustForScroll(true);
columnsContainer.add(columnsLayoutContainer);
addFields();