fixed double call createlayouts

updated distro

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@120243 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-11-10 10:25:13 +00:00
parent af2e6d0d4a
commit 22a05a4472
3 changed files with 7 additions and 5 deletions

View File

@ -6,6 +6,7 @@
<Change>[Bug #531] Fixed issue on create folder</Change> <Change>[Bug #531] Fixed issue on create folder</Change>
<Change>[Feature #429] Realized. Integrated with workspace-uploader</Change> <Change>[Feature #429] Realized. Integrated with workspace-uploader</Change>
<Change>[Bug #1270] Fixed. Workspace improvements: many rpc calls after an delete multiple</Change> <Change>[Bug #1270] Fixed. Workspace improvements: many rpc calls after an delete multiple</Change>
<Change>[Feature #1280] Workspace GUI: quote and available feature improvements</Change>
</Changeset> </Changeset>
<Changeset component="org.gcube.portlets-user.workspace-portlet.6-8-0" <Changeset component="org.gcube.portlets-user.workspace-portlet.6-8-0"
date="2015-07-06"> date="2015-07-06">

View File

@ -17,6 +17,7 @@ import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout; import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData; import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.extjs.gxt.ui.client.widget.layout.FitLayout; import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.user.client.Random; import com.google.gwt.user.client.Random;
@ -79,10 +80,10 @@ public class GxtBorderLayoutPanel extends ContentPanel {
east.setVisible(false); east.setVisible(false);
// south.setVisible(false); // south.setVisible(false);
this.createLayouts(); // this.createLayouts();
} }
public void createLayouts(){ private void createLayouts(){
final BorderLayout borderLayout = new BorderLayout(); final BorderLayout borderLayout = new BorderLayout();
setLayout(borderLayout); setLayout(borderLayout);
@ -162,6 +163,7 @@ public class GxtBorderLayoutPanel extends ContentPanel {
// center.add(this.toolbarContainer); // center.add(this.toolbarContainer);
center.setId("Center Panel "+Random.nextInt()); center.setId("Center Panel "+Random.nextInt());
// GWT.log("center: "+center.getId());
dnd.addUniqueContainer(this.gxtCardLayoutResultPanel); dnd.addUniqueContainer(this.gxtCardLayoutResultPanel);
center.add(dnd); center.add(dnd);

View File

@ -11,7 +11,6 @@ import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.CardLayout; import com.extjs.gxt.ui.client.widget.layout.CardLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout; import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Random;
/** /**
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
@ -51,14 +50,14 @@ public class GxtCardLayoutResultPanel extends LayoutContainer{
super.onRender(parent, pos); super.onRender(parent, pos);
setLayout(new FitLayout()); setLayout(new FitLayout());
setId("GxtCardLayoutResultPanel "+Random.nextInt()); // setId("GxtCardLayoutResultPanel");
setHeight("auto"); setHeight("auto");
ContentPanel cp = new ContentPanel(); ContentPanel cp = new ContentPanel();
cp.setHeaderVisible(false); cp.setHeaderVisible(false);
cp.setLayout(cardLayout); cp.setLayout(cardLayout);
cp.setHeight("auto"); cp.setHeight("auto");
cp.setId("GxtCardLayoutResultPanel Content Panel "+Random.nextInt()); // cp.setId("GxtCardLayoutResultPanel Content Panel "+Random.nextInt());
cp.add(itemPanel); cp.add(itemPanel);
cp.setHeight("auto"); cp.setHeight("auto");