From 836a33a7bafef2dc717702c20e8daa9f8e63211a Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 2 May 2014 13:37:04 +0000 Subject: [PATCH] Minor Update git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@95306 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../tdwx/client/TabularDataXGridPanel.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 ad5c536..ebc086c 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 @@ -657,14 +657,6 @@ public class TabularDataXGridPanel extends ContentPanel { container.add(toolBar, new VerticalLayoutData(1, 25, new Margins(0))); - container.forceLayout(); - - Scheduler.get().scheduleDeferred(new ScheduledCommand() { - - public void execute() { - container.forceLayout(); - } - }); loader.load(0, liveGridView.getCacheSize()); @@ -719,7 +711,18 @@ public class TabularDataXGridPanel extends ContentPanel { } else { grid.getView().setViewConfig(null); } + + container.forceLayout(); + + Scheduler.get().scheduleDeferred(new ScheduledCommand() { + public void execute() { + container.forceLayout(); + } + }); + + + eventBus.fireEvent(new GridReadyEvent()); }