From ac1f6d745bdae422f0774f6bcd5880d35b4aeae3 Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Wed, 21 Apr 2010 13:23:03 +0000
Subject: [PATCH] fixed problem of hidden paging toolbar after showing filters

SVN: 15563
---
 .../client/application/ui/grid/AbstractBrowserGrid.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java
index a274b4ae52d..eb4972e7655 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java
@@ -266,6 +266,15 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod
                     pagingToolbar.syncSize();
                 }
             });
+        pagingToolbar.addListener(Events.AfterLayout, new Listener<BaseEvent>()
+            {
+                public void handleEvent(BaseEvent be)
+                {
+                    // fixes for problems of:
+                    // - hidden paging toolbar
+                    contentPanel.syncSize();
+                }
+            });
         columnListener = new ColumnListener<T, M>(grid);
         registerLinkClickListenerFor(Dict.CODE, new ICellListener<T>()
             {
-- 
GitLab