From aec5582bc377b6a5f34bcd5eeeb3d414f5d7f7d1 Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Fri, 12 Feb 2010 10:56:28 +0000 Subject: [PATCH] [LMS-1379] fixed (reopened LMS-1357 and put it into backlog as our current solution is quite poor) SVN: 14721 --- .../application/ui/grid/AbstractBrowserGrid.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 b691b6da192..2ccde2531c8 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 @@ -990,8 +990,8 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod if (customColumnsMetadata != null) { RealNumberRenderer renderer = - new RealNumberRenderer(viewContext.getDisplaySettingsManager() - .getRealNumberFormatingParameters()); + new RealNumberRenderer(viewContext.getDisplaySettingsManager() + .getRealNumberFormatingParameters()); for (GridCustomColumnInfo gridCustomColumnInfo : customColumnsMetadata) { if (gridCustomColumnInfo.getDataType() == DataTypeCode.REAL) @@ -1479,7 +1479,10 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod protected void onWindowResize(int aWidth, int aHeight) { super.onWindowResize(aWidth, aHeight); - layout(true); + if (isVisible()) + { + layout(true); + } } }; bottomToolbars.setMonitorWindowResize(true); @@ -1488,7 +1491,7 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod bottomToolbars.add(pagingToolbar, new RowData(1, -1)); return bottomToolbars; } - + @Override protected void onAttach() { -- GitLab