mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Only set both height and width of editor when shadow DOM is used
These work inside a shadow root, but break the flexbox behavior when the shadow DOM is disabled.
This commit is contained in:
@@ -34,6 +34,7 @@ class TextEditorElement extends HTMLElement
|
||||
@stylesElement.initialize()
|
||||
|
||||
@rootElement = document.createElement('div')
|
||||
@rootElement.classList.add('shadow')
|
||||
|
||||
@shadowRoot.appendChild(@stylesElement)
|
||||
@shadowRoot.appendChild(@rootElement)
|
||||
|
||||
Reference in New Issue
Block a user