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 ffd0d5731b300842ecdf4d417fa70f9269a12f95..96e2feeb12ba5d1fa97b52bc1972d8c9a283bc0e 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 2d1d1536cbcfdec8e97bd1057a77c5f42d465a3e..383e48918c694be4421385268cb8efe4e9ac4570 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; } }