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:
parent
c35ef8f315
commit
9d7f6de26c
|
@ -47,10 +47,16 @@ public class WorkspacePortlet implements EntryPoint {
|
|||
|
||||
int leftBorder = workspace.getAbsoluteLeft();
|
||||
|
||||
int footer = 85; //footer is bottombar + sponsor
|
||||
|
||||
int rootHeight = (Window.getClientHeight() - topBorder - 4) ;// - ((footer == null)?0:(footer.getOffsetHeight()-15));
|
||||
// int rootHeight = (Window.getClientHeight() - topBorder - 4) ;// - ((footer == null)?0:(footer.getOffsetHeight()-15));
|
||||
|
||||
if (rootHeight > 550)
|
||||
// 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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue