Loading template/app/controller/InlineExamples.js +3 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,9 @@ Ext.define('Docs.controller.InlineExamples', { example.codeEditor.setValue(code); var activeItem = example.layout.getActiveItem(); if (activeItem.cmpName == 'preview') { example.showPreview(function() { this.refreshPreview(example); }, this); } example.updateHeight(); }, Loading template/app/view/examples/Inline.js +6 −5 Original line number Diff line number Diff line Loading @@ -59,8 +59,14 @@ Ext.define('Docs.view.examples.Inline', { bodyPadding: 2, bodyStyle: 'background: #f7f7f7', autoScroll: true }, { bodyPadding: '0 10', cmpName: 'preview', html: this.getHtml() } ]; this.activeItem = Docs.touchExamplesUi ? 1 : 0; this.callParent(arguments); }, Loading @@ -80,11 +86,6 @@ Ext.define('Docs.view.examples.Inline', { */ showPreview: function(callback, scope) { if (!this.previewInitialized) { this.add({ bodyPadding: '0 10', cmpName: 'preview', html: this.getHtml() }); var iframe = document.getElementById(this.getIframeId()); // Something is not quite ready when onload fires. // I'm unsure what I should wait for. So I'm currently adding just this nasty delay. Loading Loading
template/app/controller/InlineExamples.js +3 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,9 @@ Ext.define('Docs.controller.InlineExamples', { example.codeEditor.setValue(code); var activeItem = example.layout.getActiveItem(); if (activeItem.cmpName == 'preview') { example.showPreview(function() { this.refreshPreview(example); }, this); } example.updateHeight(); }, Loading
template/app/view/examples/Inline.js +6 −5 Original line number Diff line number Diff line Loading @@ -59,8 +59,14 @@ Ext.define('Docs.view.examples.Inline', { bodyPadding: 2, bodyStyle: 'background: #f7f7f7', autoScroll: true }, { bodyPadding: '0 10', cmpName: 'preview', html: this.getHtml() } ]; this.activeItem = Docs.touchExamplesUi ? 1 : 0; this.callParent(arguments); }, Loading @@ -80,11 +86,6 @@ Ext.define('Docs.view.examples.Inline', { */ showPreview: function(callback, scope) { if (!this.previewInitialized) { this.add({ bodyPadding: '0 10', cmpName: 'preview', html: this.getHtml() }); var iframe = document.getElementById(this.getIframeId()); // Something is not quite ready when onload fires. // I'm unsure what I should wait for. So I'm currently adding just this nasty delay. Loading