From ccc0c3888749a5ca62c1d517e92ec5aa5d43d8bb Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 28 Dec 2009 19:57:46 +0000 Subject: [PATCH] Fixed path reorient enable/disable state, fixed fill/stroke color box gap git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1120 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 85452a1c..60078a14 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -350,7 +350,9 @@ function svg_edit_setup() { var currentMode = svgCanvas.getMode(); // No need to update anything else in rotate mode if (currentMode == 'rotate' && elem != null) { - $('#angle').val(svgCanvas.getRotationAngle(elem)); + var ang = svgCanvas.getRotationAngle(elem); + $('#angle').val(ang); + $('#tool_reorient').toggleClass('tool_button_disabled', ang == 0); return; } else if(svgCanvas.addedNew && elem != null && elname == 'image') { promptImgURL(); @@ -552,6 +554,7 @@ function svg_edit_setup() { var changeRotationAngle = function(ctl) { svgCanvas.setRotationAngle(ctl.value); + $('#tool_reorient').toggleClass('tool_button_disabled', ctl.value == 0); } var changeZoom = function(ctl) { var zoomlevel = ctl.value / 100; @@ -1592,9 +1595,11 @@ function svg_edit_setup() { var boxgrad = svgdocbox.getElementById('gradbox_'); boxgrad.id = 'gradbox_fill'; + svgdocbox.documentElement.setAttribute('width',16.5); $('#fill_color').append( document.importNode(svgdocbox.documentElement,true) ); boxgrad.id = 'gradbox_stroke'; + svgdocbox.documentElement.setAttribute('width',16.5); $(svgdocbox.documentElement.firstChild).attr('fill', '#000000'); $('#stroke_color').append( document.importNode(svgdocbox.documentElement,true) );