Commit a7d8bc85 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@47528 954022d7-b5bf-4e40-9824-e11837661b57
parent 1d0a56f2
...@@ -582,10 +582,13 @@ function calcAllMargin(isFormatCell,isformatCellScOy,minX,maxX,minY,maxY, chart) ...@@ -582,10 +582,13 @@ function calcAllMargin(isFormatCell,isformatCellScOy,minX,maxX,minY,maxY, chart)
var font = getFontProperties("key"); var font = getFontProperties("key");
var props = getMaxPropertiesText(context,font,bar._otherProps._key); var props = getMaxPropertiesText(context,font,bar._otherProps._key);
var heigthTextKey = (context.getHeightText()/0.75); var heigthTextKey = (context.getHeightText()/0.75);
var kF = 1;
if(bar.type == 'pie')
kF = 2;
if(bar._otherProps._key_halign == 'top') if(bar._otherProps._key_halign == 'top')
top += heigthTextKey + 7; top += (heigthTextKey + 7)*kF;
else else
bottom += heigthTextKey + 7; bottom += (heigthTextKey + 7)*kF;
} }
//+ ширина легенды //+ ширина легенды
if (bar._otherProps._key_halign == 'left' || bar._otherProps._key_halign == 'right') if (bar._otherProps._key_halign == 'left' || bar._otherProps._key_halign == 'right')
...@@ -604,9 +607,12 @@ function calcAllMargin(isFormatCell,isformatCellScOy,minX,maxX,minY,maxY, chart) ...@@ -604,9 +607,12 @@ function calcAllMargin(isFormatCell,isformatCellScOy,minX,maxX,minY,maxY, chart)
if(bottom == 0) if(bottom == 0)
bottom = standartMargin; bottom = standartMargin;
var standartMarginTop = standartMargin;
if(bar.type == 'pie' && bar._otherProps._key_halign == 'top')
standartMarginTop = 0;
bar._chartGutter._left = (left)*scale + standartMargin; bar._chartGutter._left = (left)*scale + standartMargin;
bar._chartGutter._right = (standartMargin + right)*scale; bar._chartGutter._right = (standartMargin + right)*scale;
bar._chartGutter._top = (standartMargin + top)*scale; bar._chartGutter._top = (standartMarginTop + top)*scale;
bar._chartGutter._bottom = (bottom)*scale; bar._chartGutter._bottom = (bottom)*scale;
} }
......
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