This commit is contained in:
Francesco Mangiacrapa 2013-02-25 18:03:42 +00:00
parent 35fff6b1db
commit 8158b8c63f
2 changed files with 12 additions and 10 deletions

View File

@ -470,10 +470,14 @@ public class AppController implements SubscriberInterface {
if(isSelected){
FileModel lastParent = this.wsPortlet.getToolBarPath().getLastParent();
boolean parentChanged = lastParent.getIdentifier().compareTo(target.getParentFileModel().getIdentifier())==0?false:true;
//RELOAD breadcrumb only if last parent id is changed
if(parentChanged)
if(lastParent!=null){
boolean parentChanged = lastParent.getIdentifier().compareTo(target.getParentFileModel().getIdentifier())==0?false:true;
//RELOAD breadcrumb only if last parent id is changed
if(parentChanged)
loadBreadcrumbById(target.getIdentifier());
}
else
loadBreadcrumbById(target.getIdentifier());
// if(!(lastParent.getIdentifier().compareTo(target.getIdentifier())==0))

View File

@ -76,18 +76,16 @@ public class GxtSeachAndFilterPanel extends LayoutContainer {
this.cbViewScope = this.comboBoxGxt.getComboViewScope();
this.cbNameFilter = this.comboBoxGxt.getComboStringFilter();
this.cbViewScope.setWidth(300);
this.cbViewScope.setAutoWidth(true);
this.cbViewScope.setWidth(360);
// this.cbViewScope.setAutoWidth(true);
this.toolbarPathPanel = toolbarContainer;
cp.add(this.toolbarPathPanel);
hp.setStyleAttribute("padding", "2px");
this.cbViewScope.setStyleAttribute("margin-left", "5px");
this.cbViewScope.setStyleAttribute("margin-right", "100px");
this.cbViewScope.setStyleAttribute("margin-right", "70px");
seVisibleButtonsCancelSave(false);
@ -148,7 +146,7 @@ public class GxtSeachAndFilterPanel extends LayoutContainer {
RootPanel workspace = RootPanel.get(ConstantsPortlet.WORKSPACEDIV);
int leftBorder = workspace.getAbsoluteLeft();
int rootWidth = Window.getClientWidth() - 2* leftBorder; //- rightScrollBar;
hp.setWidth(rootWidth - 400);
hp.setWidth(rootWidth - 500);
}
public void searchText(String value){