Added constant to the height of Dilaog Share folder

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@128947 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-06-01 09:37:25 +00:00
parent f4b93ae3de
commit 916c472009
2 changed files with 7 additions and 3 deletions

View File

@ -225,5 +225,6 @@ public class ConstantsExplorer {
public static final String MY_SPECIAL_FOLDERS = "MySpecialFolders"; public static final String MY_SPECIAL_FOLDERS = "MySpecialFolders";
public static final int HEIGHT_DIALOG_SHARE_FOLDER = 445;
} }

View File

@ -42,6 +42,10 @@ import com.google.gwt.user.client.ui.Label;
*/ */
public class DialogShareFolder extends Dialog { public class DialogShareFolder extends Dialog {
/**
*
*/
private int widthDialog = 535; private int widthDialog = 535;
private int heightTextArea = 100; private int heightTextArea = 100;
private TextField<String> txtName; private TextField<String> txtName;
@ -282,10 +286,9 @@ public class DialogShareFolder extends Dialog {
setScrollMode(Scroll.AUTOY); setScrollMode(Scroll.AUTOY);
setBodyStyle("padding: 9px; background: none"); setBodyStyle("padding: 9px; background: none");
setWidth(widthDialog); setWidth(widthDialog);
setHeight(400); setHeight(ConstantsExplorer.HEIGHT_DIALOG_SHARE_FOLDER);
setResizable(true); setResizable(true);
setButtonAlign(HorizontalAlignment.CENTER); setButtonAlign(HorizontalAlignment.CENTER);
setWidth(widthDialog);
setButtons(Dialog.OKCANCEL); setButtons(Dialog.OKCANCEL);
} }
@ -301,7 +304,7 @@ public class DialogShareFolder extends Dialog {
initLayout(folderParentName); initLayout(folderParentName);
this.setIcon(Resources.getIconSharedFolder()); this.setIcon(Resources.getIconSharedFolder());
setHeading("Create a new shared folder in: "+folderParentName); setHeading("Create a new shared folder in: "+folderParentName);
setHeight(375); setHeight(ConstantsExplorer.HEIGHT_DIALOG_SHARE_FOLDER-25);
setWidth(widthDialog); setWidth(widthDialog);
setButtons(Dialog.OKCANCEL); setButtons(Dialog.OKCANCEL);