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

View File

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