0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Merge pull request #5690 from kevinansfield/fix-editor-undefined-height-bug

Fix occasional issue with editor not rendering
This commit is contained in:
Sebastian Gierlinger 2015-08-20 16:48:20 +02:00
commit 5ae8709a0a

View file

@ -41,7 +41,7 @@ export default Ember.Component.extend({
// scrollPosition value such that when either scrolling or typing-at-the-end of the text editor the preview pane
// stays in sync
scrollPosition: Ember.computed('editorScrollInfo', 'height', function () {
if (!this.get('editorScrollInfo')) {
if (!this.get('editorScrollInfo') || !this.get('$previewContent') || !this.get('$previewViewPort')) {
return 0;
}