commented code
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@96221 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
84e95c97c6
commit
c6005fdbb0
|
@ -54,7 +54,7 @@ public class GxtSeachAndFilterPanel extends LayoutContainer {
|
||||||
private SimpleComboBox<String> cbNameFilter = null;
|
private SimpleComboBox<String> cbNameFilter = null;
|
||||||
// private HorizontalPanel hpToolbarPathPanel = null;
|
// private HorizontalPanel hpToolbarPathPanel = null;
|
||||||
private boolean isSearchActive = false;
|
private boolean isSearchActive = false;
|
||||||
private VerticalPanel cp = new VerticalPanel();
|
private VerticalPanel verticalPanel = new VerticalPanel();
|
||||||
|
|
||||||
private HorizontalPanel hp = new HorizontalPanel();
|
private HorizontalPanel hp = new HorizontalPanel();
|
||||||
private HorizontalPanel hp2 = new HorizontalPanel();
|
private HorizontalPanel hp2 = new HorizontalPanel();
|
||||||
|
@ -76,7 +76,7 @@ public class GxtSeachAndFilterPanel extends LayoutContainer {
|
||||||
// this.cbViewScope.setAutoWidth(true);
|
// this.cbViewScope.setAutoWidth(true);
|
||||||
|
|
||||||
this.toolbarPahtPanel = toolBarPathPanel;
|
this.toolbarPahtPanel = toolBarPathPanel;
|
||||||
cp.add(this.toolbarPahtPanel.getToolBarPathPanel());
|
verticalPanel.add(this.toolbarPahtPanel.getToolBarPathPanel());
|
||||||
|
|
||||||
hp.setStyleAttribute("padding", "2px");
|
hp.setStyleAttribute("padding", "2px");
|
||||||
|
|
||||||
|
@ -122,11 +122,11 @@ public class GxtSeachAndFilterPanel extends LayoutContainer {
|
||||||
|
|
||||||
hpMain.add(hp2);
|
hpMain.add(hp2);
|
||||||
|
|
||||||
cp.add(hpMain);
|
verticalPanel.add(hpMain);
|
||||||
|
|
||||||
this.addListeners();
|
this.addListeners();
|
||||||
|
|
||||||
add(cp);
|
add(verticalPanel);
|
||||||
|
|
||||||
updateSize();
|
updateSize();
|
||||||
Window.addResizeHandler(new ResizeHandler() {
|
Window.addResizeHandler(new ResizeHandler() {
|
||||||
|
|
|
@ -37,6 +37,7 @@ public class GxtBreadcrumbPathPanel {
|
||||||
|
|
||||||
public GxtBreadcrumbPathPanel() {
|
public GxtBreadcrumbPathPanel() {
|
||||||
hpToolBar = new HorizontalPanel();
|
hpToolBar = new HorizontalPanel();
|
||||||
|
// hpToolBar.setScrollMode(Scroll.AUTOX);
|
||||||
hpToolBar.setId("myToolbarPath");
|
hpToolBar.setId("myToolbarPath");
|
||||||
hpToolBar.setHeight("25px");
|
hpToolBar.setHeight("25px");
|
||||||
initToolbar();
|
initToolbar();
|
||||||
|
@ -50,7 +51,7 @@ public class GxtBreadcrumbPathPanel {
|
||||||
|
|
||||||
initToolbarWithoutFakeRoot();
|
initToolbarWithoutFakeRoot();
|
||||||
|
|
||||||
refreshSize();
|
// refreshSize();
|
||||||
|
|
||||||
if (parents != null && parents.size() > 0) {
|
if (parents != null && parents.size() > 0) {
|
||||||
|
|
||||||
|
@ -101,8 +102,8 @@ public class GxtBreadcrumbPathPanel {
|
||||||
hpToolBar.add(listButtons.get(size - 1)); // Add last element
|
hpToolBar.add(listButtons.get(size - 1)); // Add last element
|
||||||
hpToolBar.layout(true);
|
hpToolBar.layout(true);
|
||||||
|
|
||||||
int currentWidth = hpToolBar.el().getChild(0).getRegion().right;
|
// int currentWidth = hpToolBar.el().getChild(0).getRegion().right;
|
||||||
int maxWidth = hpToolBar.getWidth();
|
// int maxWidth = hpToolBar.getWidth();
|
||||||
|
|
||||||
// GWT.log("toolBar maxWidth width is: "+maxWidth);
|
// GWT.log("toolBar maxWidth width is: "+maxWidth);
|
||||||
// GWT.log("toolBar currentWidth is: "+currentWidth);
|
// GWT.log("toolBar currentWidth is: "+currentWidth);
|
||||||
|
|
Loading…
Reference in New Issue