Commit 28b8e04c authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

диаграмма по центру во фрейме

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57319 954022d7-b5bf-4e40-9824-e11837661b57
parent 22223554
......@@ -2604,7 +2604,13 @@ function DrawingObjects() {
pos_y = 0;
}
oNewChartSpace.spPr.xfrm.setOffX(70);
var canvas_width = worksheet.drawingCtx.getWidth(3);
var pos_x = (canvas_width - oNewChartSpace.spPr.xfrm.extX)/2;
if(pos_x < 0)
{
pos_x = 0;
}
oNewChartSpace.spPr.xfrm.setOffX(pos_x);
oNewChartSpace.spPr.xfrm.setOffY(pos_y);
oNewChartSpace.recalculate();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment