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 FlowPanel centerPanel = null;
|
||||
private FlowPanel centerDock;
|
||||
private int southPanelSize = 38;
|
||||
private int southPanelSize = 40;
|
||||
/* (non-Javadoc)
|
||||
* @see org.gcube.portlets.widgets.wsexplorer.client.explore.WorkspaceResourcesExplorerPanel#onLoad()
|
||||
*/
|
||||
|
@ -230,13 +230,11 @@ public class WorkspaceResourcesExplorerPanelPaginated extends WorkspaceResources
|
|||
*/
|
||||
public void setHeightToInternalScroll(int height){
|
||||
|
||||
super.setHeightToInternalScroll(height);
|
||||
super.setHeightToInternalScroll(height-southPanelSize);
|
||||
int nh = super.getNewHeightForContainer(height);
|
||||
if(nh>0){
|
||||
int newSize = nh - southPanelSize; //removing size of south panel
|
||||
if(newSize > 0)
|
||||
GWT.log("Set new height to center Dock panel: "+nh);
|
||||
centerDock.setHeight(newSize+"px");
|
||||
GWT.log("Set new height to center Dock panel: "+nh);
|
||||
centerDock.setHeight(nh+"px");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue