BUG 0000 Dashlet adjust to width to the panel

This commit is contained in:
Victor Saisa Lopez
2011-12-05 16:37:40 -04:00
parent c3ea11b138
commit 4e2f6a13ba
3 changed files with 5 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ class dashletProcessMakerCommunity implements DashletInterface {
margin-right: 0.5em;
width: 26.5em;
width: 26em;
font-size: 0.8em;
}

View File

@@ -63,7 +63,7 @@ class dashletProcessMakerEnterprise implements DashletInterface {
margin-right: 0.5em;
width: 26.5em;
width: 26em;
font-size: 0.8em;
}

View File

@@ -179,7 +179,7 @@ Ext.onReady(function(){
p.html = 'show ' + p.getWidth();
},
'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",
id: p.dasInsUid
})
@@ -204,7 +204,7 @@ Ext.onReady(function(){
p.html = 'show ' + p.getWidth();
},
'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",
id: p.dasInsUid
})