IDEMPIERE-1362 Implement support to register/unregister available dashboard content. Fixed broken scrolling.

This commit is contained in:
Heng Sin Low 2013-09-13 12:32:29 +08:00
parent bba389c81c
commit 3cae2f9c96
1 changed files with 2 additions and 4 deletions

View File

@ -97,7 +97,7 @@ public class DashboardController implements EventListener<Event> {
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<Event> {
}
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);