From a6f8125947f91e4d41d1de761f136145349e3dff Mon Sep 17 00:00:00 2001 From: Genadi Sokolov Date: Sun, 15 Apr 2018 13:40:04 +0300 Subject: [PATCH] Change overflow to scroll only if styleHeight is bigger then the actualHeight instead of not equal to. Fix: show scroll bar when not needed: min-height set to value bigger then height. --- src/autosize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autosize.js b/src/autosize.js index 4be30cc..3e575d0 100644 --- a/src/autosize.js +++ b/src/autosize.js @@ -135,7 +135,7 @@ function assign(ta) { // The actual height not matching the style height (set via the resize method) indicates that // the max-height has been exceeded, in which case the overflow should be allowed. - if (actualHeight !== styleHeight) { + if (actualHeight < styleHeight) { if (computed.overflowY === 'hidden') { changeOverflow('scroll'); resize();