Fixed issue 130: Contextual Panel flickers on rotate

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@486 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-08-27 13:04:32 +00:00
parent 841d1c24d3
commit 581728ab1a
1 changed files with 7 additions and 0 deletions

View File

@ -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) {