Fixed Issue 729: You can move dialog boxes off the page
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1828 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -489,7 +489,7 @@
|
|||||||
// In the future we may want to add additional types of dialog boxes, since
|
// In the future we may want to add additional types of dialog boxes, since
|
||||||
// they should be easy to handle this way.
|
// they should be easy to handle this way.
|
||||||
(function() {
|
(function() {
|
||||||
$('#dialog_container').draggable({cancel:'#dialog_content, #dialog_buttons *'});
|
$('#dialog_container').draggable({cancel:'#dialog_content, #dialog_buttons *', containment: 'window'});
|
||||||
var box = $('#dialog_box'), btn_holder = $('#dialog_buttons');
|
var box = $('#dialog_box'), btn_holder = $('#dialog_buttons');
|
||||||
|
|
||||||
var dbox = function(type, msg, callback, defText) {
|
var dbox = function(type, msg, callback, defText) {
|
||||||
@@ -2590,7 +2590,7 @@
|
|||||||
$('#svg_source_textarea').focus();
|
$('#svg_source_textarea').focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
$('#svg_docprops_container, #svg_prefs_container').draggable({cancel:'button,fieldset'});
|
$('#svg_docprops_container, #svg_prefs_container').draggable({cancel:'button,fieldset', containment: 'window'});
|
||||||
|
|
||||||
var showDocProperties = function(){
|
var showDocProperties = function(){
|
||||||
if (docprops) return;
|
if (docprops) return;
|
||||||
@@ -3171,7 +3171,7 @@
|
|||||||
var was_none = false;
|
var was_none = false;
|
||||||
var pos = elem.position();
|
var pos = elem.position();
|
||||||
$("#color_picker")
|
$("#color_picker")
|
||||||
.draggable({cancel:'.jGraduate_tabs,.jGraduate_colPick,.jGraduate_lgPick,.jGraduate_rgPick'})
|
.draggable({cancel:'.jGraduate_tabs,.jGraduate_colPick,.jGraduate_lgPick,.jGraduate_rgPick', containment: 'window'})
|
||||||
.css(curConfig.colorPickerCSS || {'left': pos.left, 'bottom': 50 - pos.top})
|
.css(curConfig.colorPickerCSS || {'left': pos.left, 'bottom': 50 - pos.top})
|
||||||
.jGraduate(
|
.jGraduate(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user