docs2/Roo.docs.ViewSource.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 09:02:09 +0000 (17:02 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 09:02:09 +0000 (17:02 +0800)
docs2/Roo.docs.ViewSource.js

docs2/Roo.docs.ViewSource.bjs
docs2/Roo.docs.ViewSource.js

index 7be88bf..70555a6 100644 (file)
@@ -12,7 +12,7 @@
  "items" : [
   {
    "listeners" : {
-    "show" : "function (_self)\n{\n  //  if(_this.data.buttonText){\n    //    _this.acceptBtn.setText(_this.data.buttonText);\n   // }\n    \n      _this.body_ctr.el.dom.innerHTML = _this.data.source;\n   \n    \n    _this.dialog.el.setStyle('zIndex', '10002');\n    \n}"
+    "show" : "function (_self)\n{\n  //  if(_this.data.buttonText){\n    //    _this.acceptBtn.setText(_this.data.buttonText);\n   // }\n    \n      _this.body_ctr.el.dom.innerHTML = _this.data.source;\n     _this.body_ctr.el.dom.scrollTop = 0;\n    \n    _this.dialog.el.setStyle('zIndex', '10002');\n    \n}"
    },
    "xtype" : "Modal",
    "Boolean fitwindow" : true,
index 22874b8..508d88f 100644 (file)
@@ -48,7 +48,7 @@ Roo.apply(Roo.docs.ViewSource.prototype, {
          // }
           
             _this.body_ctr.el.dom.innerHTML = _this.data.source;
-         
+           _this.body_ctr.el.dom.scrollTop = 0;
           
           _this.dialog.el.setStyle('zIndex', '10002');