Skip to content

Commit

Permalink
Change overflow to scroll only if styleHeight is bigger then the actu…
Browse files Browse the repository at this point in the history
…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 a6f8125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a6f8125

Please sign in to comment.