Fix clicking past the content height

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Antonio Scandurra
2017-05-05 18:18:30 +02:00
parent edf1b7fb74
commit df4116d4aa
2 changed files with 13 additions and 1 deletions

View File

@@ -2435,8 +2435,10 @@ class TextEditorComponent {
3 * this.getLineHeight(),
this.getScrollContainerClientHeight() - (3 * this.getLineHeight())
)
} else {
} else if (this.props.model.getAutoHeight()) {
return this.getContentHeight()
} else {
return Math.max(this.getContentHeight(), this.getScrollContainerClientHeight())
}
}