From 3ecc83897e4ff2fb7f33858b312ab970163455f1 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 28 Jan 2015 11:45:39 +0000 Subject: [PATCH] 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 --- .../user/td/columnwidget/client/DeleteColumnPanel.java | 4 +++- .../user/td/columnwidget/client/LabelColumnPanel.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/DeleteColumnPanel.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/DeleteColumnPanel.java index b86e4b4..ce0fbd0 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/DeleteColumnPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/DeleteColumnPanel.java @@ -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))); diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/LabelColumnPanel.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/LabelColumnPanel.java index 8766160..0c7110b 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/LabelColumnPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/LabelColumnPanel.java @@ -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();