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:
Nathan Sobo
2014-11-05 11:20:55 -07:00
parent d330a8fac5
commit 670b44f250
2 changed files with 6 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ class TextEditorElement extends HTMLElement
@stylesElement.initialize()
@rootElement = document.createElement('div')
@rootElement.classList.add('shadow')
@shadowRoot.appendChild(@stylesElement)
@shadowRoot.appendChild(@rootElement)