From 35bcecc6699c7ddaa766882d44e053db3679e7a0 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 10 Feb 2010 15:57:25 +0000 Subject: [PATCH] Remove now unnecessary math check in cleanupElement(). Move line-height property to the CSS where it belongs git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1369 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.css | 1 + editor/svg-editor.html | 2 +- editor/svgcanvas.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/svg-editor.css b/editor/svg-editor.css index da5dbfee..d075e375 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -29,6 +29,7 @@ } #svg_editor #svgcanvas { + line-height: normal; display: inline-block; background-color: #A0A0A0; text-align: center; diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 818e07a5..891172b9 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -49,7 +49,7 @@ script type="text/javascript" src="locale/locale.min.js">
-
+
diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 25477427..69aa453a 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1066,7 +1066,7 @@ function BatchCommand(text) { } for(var attr in defaults) { var val = defaults[attr]; - if(element.localName != 'math' && element.getAttribute(attr) == val) { + if(element.getAttribute(attr) == val) { element.removeAttribute(attr); } }