Added support for editing inside rotated groups (issue 615), fixed some minor bugs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1782 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -52,7 +52,7 @@ if(jQuery)( function() {
|
|||||||
y_off = $(window).height() - menu.height();
|
y_off = $(window).height() - menu.height();
|
||||||
|
|
||||||
if(x > x_off) x = x_off-15;
|
if(x > x_off) x = x_off-15;
|
||||||
if(y > y_off) y = y_off-15;
|
if(y > y_off) y = y_off-30; // 30 is needed to prevent scrollbars in FF
|
||||||
|
|
||||||
// Show the menu
|
// Show the menu
|
||||||
$(document).unbind('click');
|
$(document).unbind('click');
|
||||||
|
|||||||
@@ -2668,9 +2668,11 @@
|
|||||||
var updateTitle = function(title) {
|
var updateTitle = function(title) {
|
||||||
title = title || svgCanvas.getDocumentTitle();
|
title = title || svgCanvas.getDocumentTitle();
|
||||||
var new_title = orig_title + (title?': ' + title:'');
|
var new_title = orig_title + (title?': ' + title:'');
|
||||||
if(cur_context) {
|
|
||||||
new_title = new_title + cur_context;
|
// Remove title update with current context info, isn't really necessary
|
||||||
}
|
// if(cur_context) {
|
||||||
|
// new_title = new_title + cur_context;
|
||||||
|
// }
|
||||||
$('title:first').text(new_title);
|
$('title:first').text(new_title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5462,8 +5462,14 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(getRotationAngle(mouse_target)) {
|
if(getRotationAngle(mouse_target)) {
|
||||||
// Don't do for rotated groups for now
|
// TODO: Allow method of in-group editing without having to do
|
||||||
return;
|
// this (similar to editing rotated paths)
|
||||||
|
|
||||||
|
// Ungroup and regroup
|
||||||
|
canvas.ungroupSelectedElement();
|
||||||
|
canvas.groupSelectedElements();
|
||||||
|
mouse_target = selectedElements[0];
|
||||||
|
clearSelection(true);
|
||||||
}
|
}
|
||||||
// Reset context
|
// Reset context
|
||||||
if(current_group) {
|
if(current_group) {
|
||||||
|
|||||||
Reference in New Issue
Block a user