From 37c3f1e8ebaec859825f2a3ee6e4d1317af46181 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 8 Jun 2016 16:21:31 +0200 Subject: fix --- raphael.inline_text_editing.js | 6 +++--- 1 file 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('
'); + 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); -- cgit v1.2.3