mirror of
https://github.com/atom/atom.git
synced 2026-02-07 05:05:02 -05:00
Fix clicking past the content height
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user