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-75d572ba1dddmaster
parent
98fc062e47
commit
35bcecc669
|
@ -29,6 +29,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#svg_editor #svgcanvas {
|
#svg_editor #svgcanvas {
|
||||||
|
line-height: normal;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #A0A0A0;
|
background-color: #A0A0A0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -49,7 +49,7 @@ script type="text/javascript" src="locale/locale.min.js"></script-->
|
||||||
|
|
||||||
<div id="workarea">
|
<div id="workarea">
|
||||||
<style id="styleoverrides" type="text/css" media="screen" scoped="scoped"></style>
|
<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>
|
||||||
|
|
||||||
<div id="sidepanels">
|
<div id="sidepanels">
|
||||||
|
|
|
@ -1066,7 +1066,7 @@ function BatchCommand(text) {
|
||||||
}
|
}
|
||||||
for(var attr in defaults) {
|
for(var attr in defaults) {
|
||||||
var val = defaults[attr];
|
var val = defaults[attr];
|
||||||
if(element.localName != 'math' && element.getAttribute(attr) == val) {
|
if(element.getAttribute(attr) == val) {
|
||||||
element.removeAttribute(attr);
|
element.removeAttribute(attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue