From ed6b74d26644f910fa6dec51379221f1157af86f Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Mon, 17 Jan 2011 13:11:19 +0000 Subject: [PATCH] [LMS-1949] fixed showing managed property grid SVN: 19447 --- .../web/client/application/DisposableTabContent.java | 10 +++++++--- .../web/client/application/ManagedPropertySection.java | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/DisposableTabContent.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/DisposableTabContent.java index ffd0d5731b3..96e2feeb12b 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/DisposableTabContent.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/DisposableTabContent.java @@ -62,15 +62,19 @@ abstract public class DisposableTabContent extends TabContent IDisposableComponent contentOrNull = createDisposableContent(); if (contentOrNull != null) { - updateContent(contentOrNull); + updateContent(contentOrNull, false); } } - protected void updateContent(IDisposableComponent content) + protected void updateContent(IDisposableComponent content, boolean syncNeeded) { - if (content != null) // sanity check + if (content != null) { add(content.getComponent()); + if (syncNeeded) + { + syncSize(); + } } } } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ManagedPropertySection.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ManagedPropertySection.java index 2d1d1536cbc..383e48918c6 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ManagedPropertySection.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ManagedPropertySection.java @@ -121,7 +121,7 @@ public class ManagedPropertySection extends DisposableTabContent public void execute(IDisposableComponent gridComponent) { Info.display("grid generated", gridComponent.getComponent().getId()); - updateContent(gridComponent); + updateContent(gridComponent, true); } }; @@ -130,7 +130,7 @@ public class ManagedPropertySection extends DisposableTabContent gridInfo, gridGeneratedAction); viewContext.getCommonService().createReportForManagedProperty(tableDescriptionOrNull, callback); - return null; // FIXME not the best solution + return null; } } -- GitLab