Fixed pagination size
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@158417 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d29bac7fff
commit
7599265613
|
@ -34,6 +34,7 @@ public class WorkspaceResourcesExplorerPanelPaginated extends WorkspaceResources
|
||||||
protected WorkspaceExplorerPaginated wsExplorerPaginated;
|
protected WorkspaceExplorerPaginated wsExplorerPaginated;
|
||||||
protected FlowPanel centerPanel = null;
|
protected FlowPanel centerPanel = null;
|
||||||
private FlowPanel centerDock;
|
private FlowPanel centerDock;
|
||||||
|
private int southPanelSize = 38;
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.gcube.portlets.widgets.wsexplorer.client.explore.WorkspaceResourcesExplorerPanel#onLoad()
|
* @see org.gcube.portlets.widgets.wsexplorer.client.explore.WorkspaceResourcesExplorerPanel#onLoad()
|
||||||
*/
|
*/
|
||||||
|
@ -232,8 +233,10 @@ public class WorkspaceResourcesExplorerPanelPaginated extends WorkspaceResources
|
||||||
super.setHeightToInternalScroll(height);
|
super.setHeightToInternalScroll(height);
|
||||||
int nh = super.getNewHeightForContainer(height);
|
int nh = super.getNewHeightForContainer(height);
|
||||||
if(nh>0){
|
if(nh>0){
|
||||||
GWT.log("Set new height to center Dock panel: "+nh);
|
int newSize = nh - southPanelSize; //removing size of south panel
|
||||||
centerDock.setHeight(nh+"px");
|
if(newSize > 0)
|
||||||
|
GWT.log("Set new height to center Dock panel: "+nh);
|
||||||
|
centerDock.setHeight(newSize+"px");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue