Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fix: Put dialog to open center top instead of center middle
Browse files Browse the repository at this point in the history
If the jstree is too big vertically the middle page will be strictly
outisde of bounds of the user view, which means the dialog will open and the
page will scroll to the middle and depending on the size of the page this can
become confuse. Also, it sets z-index so the dialog will always be  in front of
the page

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Sep 16, 2015
1 parent fa24e97 commit 2168803
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions client/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,7 @@ iframe{
.enable_div {
display: inline;
}

.ui-dialog {
z-index: 9999 !important ;
}
10 changes: 5 additions & 5 deletions client/js/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
title: "Run",
autoOpen: false,
modal: true,
position: { at: "middle center"},
position: { at: "center top"},
height: 'auto',
width: 650,
show: { effect: "fade", duration: 300 },
Expand Down Expand Up @@ -326,7 +326,7 @@
autoOpen: false,
modal: true,
dialogClass: 'no-close',
position: { at: "middle center"},
position: { at: "center top"},
height: 60,
width: 50,
show: { effect: "fade", duration: 300 },
Expand Down Expand Up @@ -378,7 +378,7 @@
title: "Git Commit",
autoOpen: false,
modal: true,
position: { at: "middle center"},
position: { at: "center top"},
height: 443,
width: 650,
show: { effect: "fade", duration: 300 },
Expand Down Expand Up @@ -533,7 +533,7 @@
title: "Choose a name",
autoOpen: false,
modal: true,
position: { at: "middle center"},
position: { at: "center top"},
height: 167,
width: 270,
show: { effect: "fade", duration: 300 },
Expand Down Expand Up @@ -563,7 +563,7 @@
title: title,
autoOpen: false,
modal: true,
position: { at: "middle center"},
position: { at: "center top"},
height: 220,
width: 412,
resizable: 'disable',
Expand Down

0 comments on commit 2168803

Please sign in to comment.