diff --git a/src/main/java/org/gcube/portlets/user/tdwx/client/TabularDataXGridPanel.java b/src/main/java/org/gcube/portlets/user/tdwx/client/TabularDataXGridPanel.java index d651c98..d605e68 100644 --- a/src/main/java/org/gcube/portlets/user/tdwx/client/TabularDataXGridPanel.java +++ b/src/main/java/org/gcube/portlets/user/tdwx/client/TabularDataXGridPanel.java @@ -62,6 +62,7 @@ import com.sencha.gxt.data.shared.loader.LoadResultListStoreBinding; import com.sencha.gxt.data.shared.loader.PagingLoadResult; import com.sencha.gxt.data.shared.loader.PagingLoader; import com.sencha.gxt.widget.core.client.ContentPanel; +import com.sencha.gxt.widget.core.client.container.MarginData; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; import com.sencha.gxt.widget.core.client.event.HeaderContextMenuEvent; @@ -137,10 +138,16 @@ public class TabularDataXGridPanel extends ContentPanel { super(); this.tdSessionId = tdSessionId; this.eventBus = eventBus; + setBodyBorder(false); + setBorders(false); + setHeaderVisible(false); + forceLayoutOnResize=true; + setResize(true); bindEventBus(); container = new VerticalLayoutContainer(); - - setWidget(container); + container.setBorders(false); + add(container,new MarginData(0)); + //setWidget(container); } /** @@ -743,7 +750,8 @@ public class TabularDataXGridPanel extends ContentPanel { grid.setLoadMask(true); grid.setLoader(loader); grid.setView(liveGridView); - + grid.setBorders(false); + // TODO disabled editing rows /* * editing = new GridInlineEditing(grid); @@ -769,14 +777,14 @@ public class TabularDataXGridPanel extends ContentPanel { // container.add(grid, new VerticalLayoutData(1, 1, new Margins(0))); - + toolBar = new ToolBar(); toolBar.add(new LiveToolItem(grid)); toolBar.addStyleName(ThemeStyles.getStyle().borderTop()); toolBar.getElement().getStyle().setProperty("borderBottom", "none"); container.add(toolBar, - new VerticalLayoutData(1, 25, new Margins(0))); + new VerticalLayoutData(1, 24, new Margins(0))); container.forceLayout();