diff --git a/scp/css/scp.css b/scp/css/scp.css index 5ace679406f08b4db7a8c890ee484455a0d32bdd..cdfd10f41562d395ecd4c7d00ab30855ed02648c 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -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 { diff --git a/scp/js/scp.js b/scp/js/scp.js index c764a4c5299b577b0f2785d5de97134dbbfb68cb..d483b5a6c5f901f2aa7ba35a592d9d5e3d05c21f 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -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) {