Used south panel for pagination
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@158418 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7599265613
commit
7ff7ec0d5b
|
@ -34,7 +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;
|
private int southPanelSize = 40;
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.gcube.portlets.widgets.wsexplorer.client.explore.WorkspaceResourcesExplorerPanel#onLoad()
|
* @see org.gcube.portlets.widgets.wsexplorer.client.explore.WorkspaceResourcesExplorerPanel#onLoad()
|
||||||
*/
|
*/
|
||||||
|
@ -230,13 +230,11 @@ public class WorkspaceResourcesExplorerPanelPaginated extends WorkspaceResources
|
||||||
*/
|
*/
|
||||||
public void setHeightToInternalScroll(int height){
|
public void setHeightToInternalScroll(int height){
|
||||||
|
|
||||||
super.setHeightToInternalScroll(height);
|
super.setHeightToInternalScroll(height-southPanelSize);
|
||||||
int nh = super.getNewHeightForContainer(height);
|
int nh = super.getNewHeightForContainer(height);
|
||||||
if(nh>0){
|
if(nh>0){
|
||||||
int newSize = nh - southPanelSize; //removing size of south panel
|
GWT.log("Set new height to center Dock panel: "+nh);
|
||||||
if(newSize > 0)
|
centerDock.setHeight(nh+"px");
|
||||||
GWT.log("Set new height to center Dock panel: "+nh);
|
|
||||||
centerDock.setHeight(newSize+"px");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue