Make SVG style handling be the same as HTML-CSS (don't inherit styles). This needs to be reworked so that some styles do get inherited
This commit is contained in:
parent
3a2b03a605
commit
c1fe357733
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1023,10 +1023,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
SVGgetStyles: function () {
|
SVGgetStyles: function () {
|
||||||
var style = this.Get("style");
|
if (this.style) {
|
||||||
if (style) {
|
|
||||||
var span = HTML.Element("span");
|
var span = HTML.Element("span");
|
||||||
span.style.cssText = style;
|
span.style.cssText = this.style;
|
||||||
this.styles = {border:SVG.getBorders(span), padding:SVG.getPadding(span)}
|
this.styles = {border:SVG.getBorders(span), padding:SVG.getPadding(span)}
|
||||||
if (span.style.fontSize) {this.styles.fontSize = span.style.fontSize}
|
if (span.style.fontSize) {this.styles.fontSize = span.style.fontSize}
|
||||||
if (span.style.color) {this.styles.color = span.style.color}
|
if (span.style.color) {this.styles.color = span.style.color}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user