summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-06-08 16:21:31 +0200
committerPatrick Simianer <p@simianer.de>2016-06-08 16:21:31 +0200
commit37c3f1e8ebaec859825f2a3ee6e4d1317af46181 (patch)
tree560f7197d1172590241bef3c02d9a9350abd64d4
parentd32d100bc8accb4c6ad60414a3970a21efded660 (diff)
fix
-rw-r--r--raphael.inline_text_editing.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/raphael.inline_text_editing.js b/raphael.inline_text_editing.js
index 7336cd0..155594b 100644
--- a/raphael.inline_text_editing.js
+++ b/raphael.inline_text_editing.js
@@ -103,7 +103,7 @@
background: 'white',
left: x-3+'px',
top: y-3+'px',
- width: width+'px',
+ width: (width+25)+'px',
"background-color": "rgba(1, f, f, 0.2)",
height: height+5+'px',
color: subject.attrs.fill,
@@ -180,11 +180,11 @@
tmp.style.height = null;
tmp.style.width = null;
tmp.style.visibility = 'hidden';
- tmp.innerHTML = text.split('\n').join('<br />');
+ tmp.innerHTML = text.split('\n').join(' ');
this.input.parentNode.appendChild(tmp);
- this.input.style.width = tmp.offsetWidth+22 + "px";
+ this.input.style.width = tmp.offsetWidth+25 + "px";
this.input.style.height = tmp.offsetHeight+5 + "px";
tmp.parentNode.removeChild(tmp);