Skip to content

Commit

Permalink
Merge pull request jackmoore#361 from genadis/master
Browse files Browse the repository at this point in the history
Change overflow to scroll only if styleHeight is bigger then the actu…
  • Loading branch information
jackmoore authored May 1, 2018
2 parents bd3bf8f + a6f8125 commit 53a2e03
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 53a2e03

Please sign in to comment.