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
This commit is contained in:
Francesco Mangiacrapa 2013-06-10 16:29:04 +00:00
parent c35ef8f315
commit 9d7f6de26c
2 changed files with 12 additions and 6 deletions

View File

@ -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;

View File

@ -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<ButtonEvent>() {
@Override