From 7fae20fb28030ce5a352a7aabbd333554d880015 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Mon, 13 Nov 2017 14:50:20 +0000 Subject: [PATCH] moved rule into file .css git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@158433 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../explore/WorkspaceResourcesExplorerPanelPaginated.java | 8 ++++++-- .../widgets/wsexplorer/resources/css/gwt-bootstrap.css | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanelPaginated.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanelPaginated.java index 7b9a97c..5c18af2 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanelPaginated.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanelPaginated.java @@ -18,7 +18,6 @@ import org.gcube.portlets.widgets.wsexplorer.shared.Item; import org.gcube.portlets.widgets.wsexplorer.shared.ItemType; import com.google.gwt.core.shared.GWT; -import com.google.gwt.dom.client.Style.Overflow; import com.google.gwt.user.client.ui.DockPanel; import com.google.gwt.user.client.ui.FlowPanel; @@ -217,7 +216,12 @@ public class WorkspaceResourcesExplorerPanelPaginated extends WorkspaceResources add(breadcrumbs, DockPanel.NORTH); setCellHeight(breadcrumbs, offsetBreadcrumb+"px"); centerDock = new FlowPanel(); - centerDock.getElement().getStyle().setOverflowY(Overflow.AUTO); + centerDock.addStyleName("we-dock-center-panel"); +// centerDock.getElement().getStyle().setOverflowY(Overflow.AUTO); +// centerDock.getElement().getStyle().setBorderWidth(1.0, Unit.PX); +// centerDock.getElement().getStyle().setBorderStyle(BorderStyle.SOLID); +// centerDock.getElement().getStyle().setBorderColor("#DDD"); + centerDock.add(wsExplorerPaginated.getCellPanel()); add(centerDock, DockPanel.CENTER); add(wsExplorerPaginated.getPagerPanel(), DockPanel.SOUTH); diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/resources/css/gwt-bootstrap.css b/src/main/java/org/gcube/portlets/widgets/wsexplorer/resources/css/gwt-bootstrap.css index 744ca0d..ac72c09 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/resources/css/gwt-bootstrap.css +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/resources/css/gwt-bootstrap.css @@ -189,6 +189,13 @@ vertical-align: middle !important; } +/***** WS EXPLORER DOCK PANEL - CENTER FLOW PANEL *****/ +.we-dock-center-panel { + + overflow-y: auto !important; + border: 1px solid #DDD; +} + /******* END TABLE ********/ /* .adaptiveHeight {