summaryrefslogtreecommitdiffstats
path: root/src/text.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-06 15:15:39 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-06 15:15:39 +0100
commit9ceaf63493ded5caa3e2eb89203d88c645b856b4 (patch)
tree09debad4c5e10c3bf9a21d9cf32d9c80fc53f09f /src/text.js
parent083d4eb0362152c38c6824bbeb0d785cd13c2b67 (diff)
downloadsvg.js-9ceaf63493ded5caa3e2eb89203d88c645b856b4.tar.gz
svg.js-9ceaf63493ded5caa3e2eb89203d88c645b856b4.zip
fix bug in rebuild, remove x adjusting in x method (#616)
Diffstat (limited to 'src/text.js')
-rw-r--r--src/text.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/text.js b/src/text.js
index 7438cff..20c2c1e 100644
--- a/src/text.js
+++ b/src/text.js
@@ -22,10 +22,6 @@ SVG.Text = SVG.invent({
if (x == null)
return this.attr('x')
- // move lines as well if no textPath is present
- if (!this.textPath)
- this.lines().each(function() { if (this.dom.newLined) this.x(x) })
-
return this.attr('x', x)
}
// Move over y-axis
@@ -127,9 +123,8 @@ SVG.Text = SVG.invent({
this.lines().each(function() {
if (this.dom.newLined) {
- if (!this.textPath)
+ if (!self.textPath())
this.attr('x', self.attr('x'))
-
if(this.text() == '\n') {
blankLineOffset += dy
}else{