|
|
@@ -42,14 +42,18 @@ Ext.define('erp.view.templatebuilderpanel', {
|
|
|
if(widthPercent&&heightPercent){
|
|
|
config = {
|
|
|
xtype:data.compData.config.xtype,
|
|
|
- width:w*widthPercent/100-5,
|
|
|
- height:h*heightPercent/100
|
|
|
+ width:w*widthPercent/100,
|
|
|
+ height:h*heightPercent/100,
|
|
|
+ x:0,
|
|
|
+ y:0
|
|
|
}
|
|
|
}else{
|
|
|
config = {
|
|
|
xtype:data.compData.config.xtype,
|
|
|
width:w*0.5,
|
|
|
- height:h*0.5
|
|
|
+ height:h*0.5,
|
|
|
+ x:0,
|
|
|
+ y:0
|
|
|
}
|
|
|
}
|
|
|
var component = me.add(config);
|