Commit 9fdcfe5d authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

при отрисовке учитываю размер шейпа(название диаграммы)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50807 954022d7-b5bf-4e40-9824-e11837661b57
parent f046b210
......@@ -775,6 +775,8 @@ function calcAllMargin(isFormatCell,isformatCellScOy,minX,maxX,minY,maxY, chart)
//+высота названия диаграммы
top += chart.margins.title.h;
if(chart.margins.title.h)
top += 7;
//+ высота легенды
var positionKey = chart.margins.key.position;
......@@ -1698,7 +1700,7 @@ function drawChart(chart, arrValues, width, height, options) {
}
else
bar._otherProps._background_image_color = defaultColor;
bar.margins = chart.margins;
bar.Draw(chart.min,chart.max,chart.ymin,chart.ymax,chart.isSkip,chart.isFormatCell,chart.isformatCellScOy);
}
......@@ -2428,7 +2430,14 @@ function calculatePosiitionObjects(type)
{
return 7*scale + heigthTextKey + bar._chartTitle._marginTopTitle;
}
else if(typeof(bar._chartTitle._text) == 'string' && ((bar._chartTitle._text != '' && (bar._chartTitle._text != undefined)) || (bar._chartTitle._visibleTitle != "" && bar._chartTitle._visibleTitle != undefined)))
else if(typeof(bar._chartTitle._text) == 'string' && ((bar._chartTitle._text != '' && (bar._chartTitle._text != undefined)) || (bar._chartTitle._visibleTitle != "" && bar._chartTitle._visibleTitle != undefined) || (bar.margins && bar.margins.title)))
{
if(bar.margins && bar.margins.title)
{
var heigthText = bar.margins.title.h;
return 7*scale + heigthTextKey + 7*scale + heigthText;
}
else
{
var font = getFontProperties("title");
var text = bar._chartTitle._text;
......@@ -2439,6 +2448,8 @@ function calculatePosiitionObjects(type)
var heigthText = (context.getHeightText()/0.75)*scale;
return 7*scale + heigthTextKey + 7*scale + heigthText;
}
}
else
{
return 7*scale + heigthTextKey;
......
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