From ffe0d2a3f571b52ef47c9538866908629f5b343a Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 11 Oct 2018 13:14:33 +0530 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20Fix=20ESLint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dom.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dom.js b/src/dom.js index 13e1050..a8731be 100644 --- a/src/dom.js +++ b/src/dom.js @@ -205,8 +205,7 @@ $.hasVerticalOverflow = function (element) { return element.scrollHeight > element.offsetHeight + 10; }; - -$.measureTextWidth = function(text) { +$.measureTextWidth = function (text) { const div = document.createElement('div'); div.style.position = 'absolute'; div.style.visibility = 'hidden'; @@ -216,4 +215,4 @@ $.measureTextWidth = function(text) { div.innerText = text; document.body.appendChild(div); return div.clientWidth + 1; -} \ No newline at end of file +};