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 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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue