mirror of
https://github.com/atom/atom.git
synced 2026-02-11 07:05:11 -05:00
Support autoHeight and autoWidth settings
This commit is contained in:
committed by
Antonio Scandurra
parent
369818b475
commit
88b30bc4dc
@@ -147,6 +147,15 @@ class TextEditorComponent {
|
||||
style.contain = 'strict'
|
||||
}
|
||||
|
||||
if (this.measurements) {
|
||||
if (model.getAutoHeight()) {
|
||||
style.height = this.getScrollHeight() + 'px'
|
||||
}
|
||||
if (model.getAutoWidth()) {
|
||||
style.width = this.getScrollWidth() + 'px'
|
||||
}
|
||||
}
|
||||
|
||||
let attributes = null
|
||||
let className = 'editor'
|
||||
if (this.focused) {
|
||||
|
||||
Reference in New Issue
Block a user