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
master
Jeff Schiller 2010-02-10 15:57:25 +00:00
parent 98fc062e47
commit 35bcecc669
3 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@
}
#svg_editor #svgcanvas {
line-height: normal;
display: inline-block;
background-color: #A0A0A0;
text-align: center;

View File

@ -49,7 +49,7 @@ script type="text/javascript" src="locale/locale.min.js"></script-->
<div id="workarea">
<style id="styleoverrides" type="text/css" media="screen" scoped="scoped"></style>
<div id="svgcanvas" style="line-height: normal"></div>
<div id="svgcanvas"></div>
</div>
<div id="sidepanels">

View File

@ -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);
}
}