Skip to content
Snippets Groups Projects
Commit 674696eb authored by Jared Hancock's avatar Jared Hancock
Browse files

Slight fixup for dialogs

  * Dialogs are scrollable if too big
  * Placement does not respect scroll position now (fixed position)
parent 293fa740
No related branches found
No related tags found
No related merge requests found
......@@ -1204,7 +1204,7 @@ time {
}
.dialog {
position:absolute;
position:fixed;
padding:1em;
width:500px;
height:250px;
......@@ -1215,6 +1215,8 @@ time {
z-index:5;
box-shadow: 0 5px 60px #001;
border-radius: 5px;
max-height: 72%;
overflow-y: scroll;
}
.redactor_air {
......
......@@ -103,16 +103,6 @@ $(document).ready(function(){
return false;
});
$(window).scroll(function () {
var w = $(window);
$('.dialog').each(function() {
$(this).css({
top : w.height() / 5 + w.scrollTop(),
left : (w.width() - $(this).outerWidth()) / 2
});
});
});
if($.browser.msie) {
$('.inactive').mouseenter(function() {
var elem = $(this);
......@@ -360,9 +350,9 @@ $(document).ready(function(){
$('.dialog').each(function() {
var w = $(window);
$(this).css({
top : w.height() / 5 + w.scrollTop(),
top : (w.innerHeight() / 7),
left : (w.width() - $(this).outerWidth()) / 2
});
}).draggable();
});
$('.dialog').delegate('input.close, a.close', 'click', function(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment