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:
commit
5ae8709a0a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue