mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Clear out width on TextEditorElement only if autoWidth was previously on
This commit is contained in:
@@ -152,7 +152,7 @@ class TextEditorComponent
|
||||
if (@newState.content.autoWidth isnt @oldState.content.autoWidth) or (@newState.content.width isnt @oldState.content.width)
|
||||
if @newState.content.autoWidth
|
||||
@hostElement.style.width = @newState.content.width + 'px'
|
||||
else
|
||||
else if @oldState.content.autoWidth
|
||||
@hostElement.style.width = ''
|
||||
|
||||
@oldState.content.width = @newState.content.width
|
||||
|
||||
Reference in New Issue
Block a user