diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/DashboardController.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/DashboardController.java index b8d26ea3a7..522a28d609 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/DashboardController.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/DashboardController.java @@ -97,7 +97,7 @@ public class DashboardController implements EventListener { public DashboardController() { dashboardLayout = new Anchorlayout(); - dashboardLayout.setSclass("dashboard-layout"); + dashboardLayout.setSclass("dashboard-layout slimScroll"); dashboardLayout.setVflex("1"); dashboardLayout.setHflex("1"); @@ -107,11 +107,9 @@ public class DashboardController implements EventListener { } public void render(Component parent, IDesktop desktopImpl, boolean isShowInDashboard) { - dashboardLayout = new Anchorlayout(); parent.appendChild(dashboardLayout); - dashboardLayout.setSclass("slimScroll"); + dashboardLayout.getChildren().clear(); - if (!dashboardLayout.getDesktop().isServerPushEnabled()) dashboardLayout.getDesktop().enableServerPush(true);