Fixed issue 130: Contextual Panel flickers on rotate
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@486 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
841d1c24d3
commit
581728ab1a
|
@ -158,6 +158,13 @@ function svg_edit_setup() {
|
|||
// updates the context panel tools based on the selected element
|
||||
var updateContextPanel = function() {
|
||||
var elem = selectedElement;
|
||||
|
||||
// No need to update anything else in rotate mode
|
||||
if (svgCanvas.getMode() == 'rotate' && elem != null) {
|
||||
$('#angle').val(svgCanvas.getRotationAngle(elem));
|
||||
return;
|
||||
}
|
||||
|
||||
$('#selected_panel, #multiselected_panel, #rect_panel, #circle_panel,\
|
||||
#ellipse_panel, #line_panel, #text_panel').hide();
|
||||
if (elem != null) {
|
||||
|
|
Loading…
Reference in New Issue