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
|
@ -31,6 +31,8 @@ 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,7 +463,8 @@ 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;
|
Element el = null;
|
||||||
try{
|
try{
|
||||||
el = getElement();
|
el = getElement();
|
||||||
|
@ -476,7 +477,7 @@ public class WorkspaceExplorerSaveDialog extends Modal implements HasWorskpaceEx
|
||||||
//IS MODAL-BACKDROP
|
//IS MODAL-BACKDROP
|
||||||
if(el.getNextSiblingElement()!=null)
|
if(el.getNextSiblingElement()!=null)
|
||||||
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
|
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -388,7 +388,8 @@ 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;
|
Element el = null;
|
||||||
try{
|
try{
|
||||||
el = getElement();
|
el = getElement();
|
||||||
|
@ -402,7 +403,6 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
|
||||||
if(el.getNextSiblingElement()!=null)
|
if(el.getNextSiblingElement()!=null)
|
||||||
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
|
el.getNextSiblingElement().getStyle().setZIndex(zIndex+10);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Reference in New Issue