From 12fa852cbfa0bf7f6f88047804493bdfdbbdedb8 Mon Sep 17 00:00:00 2001 From: Alec LaLonde Date: Tue, 23 Jan 2018 18:08:31 -0700 Subject: [PATCH] Don't explicitly set the overflow property for non-FF browsers --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0b06d12..6a8383e 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,10 @@ var properties = [ 'borderRightWidth', 'borderBottomWidth', 'borderLeftWidth', - 'borderStyle', + 'borderTopStyle', + 'borderRightStyle', + 'borderBottomStyle', + 'borderLeftStyle', 'paddingTop', 'paddingRight', @@ -95,8 +98,6 @@ function getCaretCoordinates(element, position, options) { // Firefox lies about the overflow property for textareas: https://bugzilla.mozilla.org/show_bug.cgi?id=984275 if (element.scrollHeight > parseInt(computed.height)) style.overflowY = 'scroll'; - } else { - style.overflow = 'hidden'; // for Chrome to not render a scrollbar; IE keeps overflowY = 'scroll' } div.textContent = element.value.substring(0, position);