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-75d572ba1dddmaster
parent
58a71b0593
commit
4d65eaf2f9
|
@ -50,9 +50,9 @@ if(jQuery)( function() {
|
|||
|
||||
var x_off = $(window).width() - menu.width(),
|
||||
y_off = $(window).height() - menu.height();
|
||||
|
||||
|
||||
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
|
||||
$(document).unbind('click');
|
||||
|
|
|
@ -2668,9 +2668,11 @@
|
|||
var updateTitle = function(title) {
|
||||
title = title || svgCanvas.getDocumentTitle();
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -5462,8 +5462,14 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
|
|||
}
|
||||
|
||||
if(getRotationAngle(mouse_target)) {
|
||||
// Don't do for rotated groups for now
|
||||
return;
|
||||
// TODO: Allow method of in-group editing without having to do
|
||||
// this (similar to editing rotated paths)
|
||||
|
||||
// Ungroup and regroup
|
||||
canvas.ungroupSelectedElement();
|
||||
canvas.groupSelectedElements();
|
||||
mouse_target = selectedElements[0];
|
||||
clearSelection(true);
|
||||
}
|
||||
// Reset context
|
||||
if(current_group) {
|
||||
|
|
Loading…
Reference in New Issue