Added check to set a z-index greater than (1040) static value used by bootstrap modal

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@128469 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-05-05 09:17:23 +00:00
parent 76e9e4c269
commit 03b454ecad
3 changed files with 29 additions and 26 deletions

View File

@ -19,7 +19,7 @@ public class WorkspaceExplorerConstants {
public static final String WORKSPACE_EXPLORER_CAPTION = "Workspace Explorer";
public static final String WORKSPACE_EXPLORER_SAVE_AS_CAPTION = "Workspace Explorer Save As...";
public static final String HOME_LABEL = "Home";
public static final String WORKSPACE_MY_SPECIAL_FOLDERS_PATH = "/Workspace/MySpecialFolders";
@ -31,7 +31,9 @@ public class WorkspaceExplorerConstants {
public static final String AUTO = "auto";
public static final int WIDHT_DIALOG = 730;
public static final int STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE = 1040;
public static final String SELECT = "Select";
public static final WorkspaceExplorerServiceAsync workspaceNavigatorService = GWT.create(WorkspaceExplorerService.class);
}

View File

@ -463,20 +463,21 @@ public class WorkspaceExplorerSaveDialog extends Modal implements HasWorskpaceEx
*/
private void configureZindex() {
if(zIndex>0){
Element el = null;
try{
el = getElement();
}catch (Exception e) {
//silent
return;
}
el.getStyle().setZIndex(zIndex+20);
zIndex = zIndex > WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE?zIndex:WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE+50;
//IS MODAL-BACKDROP
if(el.getNextSiblingElement()!=null)
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
Element el = null;
try{
el = getElement();
}catch (Exception e) {
//silent
return;
}
el.getStyle().setZIndex(zIndex+20);
//IS MODAL-BACKDROP
if(el.getNextSiblingElement()!=null)
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
}

View File

@ -388,20 +388,20 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
*/
private void configureZindex() {
if(zIndex>0){
Element el = null;
try{
el = getElement();
}catch (Exception e) {
//silent
return;
}
el.getStyle().setZIndex(zIndex+20);
zIndex = zIndex > WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE?zIndex:WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE+20;
//IS MODAL-BACKDROP
if(el.getNextSiblingElement()!=null)
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
Element el = null;
try{
el = getElement();
}catch (Exception e) {
//silent
return;
}
el.getStyle().setZIndex(zIndex+20);
//IS MODAL-BACKDROP
if(el.getNextSiblingElement()!=null)
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
}