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:
parent
76e9e4c269
commit
03b454ecad
|
@ -19,7 +19,7 @@ public class WorkspaceExplorerConstants {
|
||||||
public static final String WORKSPACE_EXPLORER_CAPTION = "Workspace Explorer";
|
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 WORKSPACE_EXPLORER_SAVE_AS_CAPTION = "Workspace Explorer Save As...";
|
||||||
|
|
||||||
public static final String HOME_LABEL = "Home";
|
public static final String HOME_LABEL = "Home";
|
||||||
|
|
||||||
public static final String WORKSPACE_MY_SPECIAL_FOLDERS_PATH = "/Workspace/MySpecialFolders";
|
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 String AUTO = "auto";
|
||||||
public static final int WIDHT_DIALOG = 730;
|
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 String SELECT = "Select";
|
||||||
|
|
||||||
public static final WorkspaceExplorerServiceAsync workspaceNavigatorService = GWT.create(WorkspaceExplorerService.class);
|
public static final WorkspaceExplorerServiceAsync workspaceNavigatorService = GWT.create(WorkspaceExplorerService.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -463,20 +463,21 @@ public class WorkspaceExplorerSaveDialog extends Modal implements HasWorskpaceEx
|
||||||
*/
|
*/
|
||||||
private void configureZindex() {
|
private void configureZindex() {
|
||||||
|
|
||||||
if(zIndex>0){
|
zIndex = zIndex > WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE?zIndex:WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE+50;
|
||||||
Element el = null;
|
|
||||||
try{
|
|
||||||
el = getElement();
|
|
||||||
}catch (Exception e) {
|
|
||||||
//silent
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
el.getStyle().setZIndex(zIndex+20);
|
|
||||||
|
|
||||||
//IS MODAL-BACKDROP
|
Element el = null;
|
||||||
if(el.getNextSiblingElement()!=null)
|
try{
|
||||||
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -388,20 +388,20 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
|
||||||
*/
|
*/
|
||||||
private void configureZindex() {
|
private void configureZindex() {
|
||||||
|
|
||||||
if(zIndex>0){
|
zIndex = zIndex > WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE?zIndex:WorkspaceExplorerConstants.STATIC_BOOTSTRAP_ZINDEX_MODAL_VALUE+20;
|
||||||
Element el = null;
|
|
||||||
try{
|
|
||||||
el = getElement();
|
|
||||||
}catch (Exception e) {
|
|
||||||
//silent
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
el.getStyle().setZIndex(zIndex+20);
|
|
||||||
|
|
||||||
//IS MODAL-BACKDROP
|
Element el = null;
|
||||||
if(el.getNextSiblingElement()!=null)
|
try{
|
||||||
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue