roojs-mailer.js
authorAlan Knowles <alan@roojs.com>
Thu, 18 Sep 2014 09:58:02 +0000 (17:58 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Sep 2014 09:58:02 +0000 (17:58 +0800)
roojs-mailer-debug.js

roojs-mailer-debug.js
roojs-mailer.js

index 8833f8f..4cf6054 100644 (file)
@@ -180,7 +180,7 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component,  {
                     align : 'center',
                     valign : 'top',
                     style : 'padding-top : 20px;',
-                    cls : 'roo-m-row'
+                    cls : 'roo-m-column'
                 }
           
             );
index 286431d..7ac3d5a 100644 (file)
@@ -2,7 +2,7 @@
 Roo.mailer=Roo.mailer||{};_calls=0;Roo.mailer.Body=function(A){Roo.mailer.Body.superclass.constructor.call(this,A);var B=Roo.get(document.body);B.attr({leftmargin:0,marginwidth:0,topmargin:0,marginheight:0,offset:0});_calls++;if(_calls>1){throw "test";}
 this.onRender(B);this.onRender=function(){};};Roo.extend(Roo.mailer.Body,Roo.bootstrap.Component,{cls:'',getAutoCreate:function(){var A={tag:'center',cn:[{tag:'table',border:0,cellpadding:0,cellspacing:0,height:'100%',align:'center',cls:'roo-m-body-table '+this.cls,cn:[{tag:'tr',cn:[{tag:'td',align:'center',valight:'top',cls:'roo-m-body-cell'}]}]}]};return A;},getChildContainer:function(){return this.el.select('.roo-m-body-cell').first();},addxtype:function(A,B){return this.addxtypeChild(A,B);}});
 //Roo/mailer/Block.js
-Roo.mailer.Block=function(A){Roo.mailer.Block.superclass.constructor.call(this,A);};Roo.extend(Roo.mailer.Block,Roo.bootstrap.Component,{cls:'',html:'',blocktype:'header',getAutoCreate:function(){var tr={tag:'tr',cls:'roo-m-block-tr'};if(this.blocktype!='row'){tr.cn=[{tag:'td',align:'center',valight:'top',cls:'roo-m-'+this.blocktype+'-content',html:this.html}]}var cfg={tag:'table',border:0,cellpadding:0,cellspacing:0,width:'100%',align:'center',cls:'roo-m-'+this.blocktype+' '+this.cls,cn:[tr]};return cfg;},getChildContainer:function(A){if(this.blocktype=='row'&&A){var B=this.el.select('.roo-m-block-tr',true).first();return B.createChild({tag:'td',align:'center',valign:'top',style:'padding-top : 20px;',cls:'roo-m-row'});}return this.el.select('.roo-m-'+this.blocktype+'-content',true).first();}});
+Roo.mailer.Block=function(A){Roo.mailer.Block.superclass.constructor.call(this,A);};Roo.extend(Roo.mailer.Block,Roo.bootstrap.Component,{cls:'',html:'',blocktype:'header',getAutoCreate:function(){var tr={tag:'tr',cls:'roo-m-block-tr'};if(this.blocktype!='row'){tr.cn=[{tag:'td',align:'center',valight:'top',cls:'roo-m-'+this.blocktype+'-content',html:this.html}]}var cfg={tag:'table',border:0,cellpadding:0,cellspacing:0,width:'100%',align:'center',cls:'roo-m-'+this.blocktype+' '+this.cls,cn:[tr]};return cfg;},getChildContainer:function(A){if(this.blocktype=='row'&&A){var B=this.el.select('.roo-m-block-tr',true).first();return B.createChild({tag:'td',align:'center',valign:'top',style:'padding-top : 20px;',cls:'roo-m-column'});}return this.el.select('.roo-m-'+this.blocktype+'-content',true).first();}});
 //Roo/mailer/BodyContainer.js
 Roo.mailer.BodyContainer=function(A){Roo.mailer.BodyContainer.superclass.constructor.call(this,A);};Roo.extend(Roo.mailer.BodyContainer,Roo.bootstrap.Component,{cls:'',getAutoCreate:function(){var A={tag:'table',border:0,cellpadding:0,cellspacing:0,cls:'roo-m-body-container '+this.cls,cn:[{tag:'tbody'}]};return A;},getChildContainer:function(){var tr=this.el.select('tbody',true).first().createChild({tag:'tr',cn:[{tag:'td',align:'center',valign:'top',cls:'roo-m-child-ctr'}]});return tr.select('.roo-m-child-ctr').first();}});
 //Roo/mailer/Column.js