From: Alan Knowles Date: Fri, 9 Sep 2016 02:50:30 +0000 (+0800) Subject: Roo/doc/Entry.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=238f6910fe3b15c356c3649bc4e9574255dd686e Roo/doc/Entry.js roojs-bootstrap.js roojs-bootstrap-debug.js roojs-doc.js roojs-doc-debug.js --- diff --git a/Roo/doc/Entry.js b/Roo/doc/Entry.js index 575b04ffd8..6ecd411513 100644 --- a/Roo/doc/Entry.js +++ b/Roo/doc/Entry.js @@ -30,10 +30,11 @@ Roo.doc.Entry = function(config){ marginheight : 0, offset : 0 }); - this.el = body; + // call onRender once... and block next call...? this.onRender(body); + this.el = body; //this.onRender = function() { }; }; diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 15d39e6240..12aee34c27 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -30,10 +30,11 @@ Roo.doc.Entry = function(config){ marginheight : 0, offset : 0 }); - this.el = body; + // call onRender once... and block next call...? this.onRender(body); + this.el = body; //this.onRender = function() { }; }; diff --git a/roojs-doc.js b/roojs-doc.js index 45f3ae6121..582dd4ca02 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -1,5 +1,5 @@ // Roo/doc/Entry.js -Roo.doc=Roo.doc||{};Roo.doc.Entry=function(A){Roo.doc.Entry.superclass.constructor.call(this,A);var B=Roo.get(document.body);B.attr({leftmargin:0,marginwidth:0,topmargin:0,marginheight:0,offset:0});this.el=B;this.onRender(B);};Roo.doc.Entry._calls=0;Roo.extend(Roo.doc.Entry,Roo.bootstrap.Component,{name:'',purpose:'',getAutoCreate:function(){var A={cls:'refentry',cn:[{tag:'h1',cls:'refname',html:this.name} +Roo.doc=Roo.doc||{};Roo.doc.Entry=function(A){Roo.doc.Entry.superclass.constructor.call(this,A);var B=Roo.get(document.body);B.attr({leftmargin:0,marginwidth:0,topmargin:0,marginheight:0,offset:0});this.onRender(B);this.el=B;};Roo.doc.Entry._calls=0;Roo.extend(Roo.doc.Entry,Roo.bootstrap.Component,{name:'',purpose:'',getAutoCreate:function(){var A={cls:'refentry',cn:[{tag:'h1',cls:'refname',html:this.name} ,{cls:'refnamediv',html:this.purpose}]};return A;},addxtype:function(A,B){return this.addxtypeChild(A,B);},onRender:function(ct,A){Roo.doc.Entry._calls++;if(Roo.doc.Entry._calls>1||!ct){return;}Roo.bootstrap.Component.prototype.onRender.call(this,ct,A);}} ); // Roo/doc/Example.js