From 9d7f6de26cbb48038a02584e4f0ef0c39bafa5f3 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Mon, 10 Jun 2013 16:29:04 +0000 Subject: [PATCH] fixed, update size on window resize git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@76954 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/workspace/client/WorkspacePortlet.java | 14 ++++++++++---- .../view/toolbars/GxtToolBarItemAccounting.java | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java b/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java index b209743..f5b3c5f 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java @@ -46,11 +46,17 @@ public class WorkspacePortlet implements EntryPoint { int topBorder = workspace.getAbsoluteTop(); int leftBorder = workspace.getAbsoluteLeft(); - - - int rootHeight = (Window.getClientHeight() - topBorder - 4) ;// - ((footer == null)?0:(footer.getOffsetHeight()-15)); - if (rootHeight > 550) + int footer = 85; //footer is bottombar + sponsor + +// int rootHeight = (Window.getClientHeight() - topBorder - 4) ;// - ((footer == null)?0:(footer.getOffsetHeight()-15)); + +// if (rootHeight > 550) +// rootHeight = 550; + + int rootHeight = (Window.getClientHeight() - topBorder - 4 - footer);// - ((footer == null)?0:(footer.getOffsetHeight()-15)); + + if (rootHeight < 550) rootHeight = 550; int rootWidth = Window.getClientWidth() - 2* leftBorder; //- rightScrollBar; diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtToolBarItemAccounting.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtToolBarItemAccounting.java index 100a6ce..0dd80a9 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtToolBarItemAccounting.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtToolBarItemAccounting.java @@ -74,8 +74,8 @@ public class GxtToolBarItemAccounting extends ToolBar{ } }); - btnGetInfo = new Button(INFO, Resources.getIconInfo()); - + btnGetInfo = new Button(INFO); + btnGetInfo.setIcon(Resources.getIconInfo()); btnGetInfo.addSelectionListener(new SelectionListener() { @Override