Skip to content
Permalink
Browse files

Change overflow to scroll only if styleHeight is bigger then the actu…

…alHeight instead of not equal to. Fix: show scroll bar when not needed: min-height set to value bigger then height.
  • Loading branch information...
genadis committed Apr 15, 2018
1 parent bd3bf8f commit a6f8125947f91e4d41d1de761f136145349e3dff
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit a6f8125

Please sign in to comment.
You can’t perform that action at this time.