BUG 0000 Dashlet adjust to width to the panel
This commit is contained in:
@@ -59,7 +59,7 @@ class dashletProcessMakerCommunity implements DashletInterface {
|
|||||||
|
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
|
||||||
width: 26.5em;
|
width: 26em;
|
||||||
|
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class dashletProcessMakerEnterprise implements DashletInterface {
|
|||||||
|
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
|
||||||
width: 26.5em;
|
width: 26em;
|
||||||
|
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,11 +179,11 @@ Ext.onReady(function(){
|
|||||||
p.html = 'show ' + p.getWidth();
|
p.html = 'show ' + p.getWidth();
|
||||||
},
|
},
|
||||||
'resize' : function(p, w, h){
|
'resize' : function(p, w, h){
|
||||||
var img = new Ext.XTemplate("<iframe src=\"{page}?DAS_INS_UID={id}\" width=\"422\" height=\"217\" frameborder=\"0\"></iframe>").apply({
|
var img = new Ext.XTemplate("<iframe src=\"{page}?DAS_INS_UID={id}\" width=\"" + (w - 12) + "\" height=\"216\" frameborder=\"0\"></iframe>").apply({
|
||||||
page: "dashboard/renderDashletInstance",
|
page: "dashboard/renderDashletInstance",
|
||||||
id: p.dasInsUid
|
id: p.dasInsUid
|
||||||
})
|
})
|
||||||
|
|
||||||
p.update(img);
|
p.update(img);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,7 @@ Ext.onReady(function(){
|
|||||||
p.html = 'show ' + p.getWidth();
|
p.html = 'show ' + p.getWidth();
|
||||||
},
|
},
|
||||||
'resize' : function(p, w, h){
|
'resize' : function(p, w, h){
|
||||||
var img = new Ext.XTemplate("<iframe src=\"{page}?DAS_INS_UID={id}\" width=\"413\" height=\"217\" frameborder=\"0\"></iframe>").apply({
|
var img = new Ext.XTemplate("<iframe src=\"{page}?DAS_INS_UID={id}\" width=\"" + (w - 12) + "\" height=\"216\" frameborder=\"0\"></iframe>").apply({
|
||||||
page: "dashboard/renderDashletInstance",
|
page: "dashboard/renderDashletInstance",
|
||||||
id: p.dasInsUid
|
id: p.dasInsUid
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user