Commit 41e87580 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 25659 - Часть графического объекта остается на заголовках столбцов, при увеличении зума

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57518 954022d7-b5bf-4e40-9824-e11837661b57
parent 8896327f
......@@ -535,11 +535,38 @@ function FrozenPlace(ws, type) {
var y = convertMetrics(rect.y, 0, 1);
var w = convertMetrics(rect.w, 0, 1);
var h = convertMetrics(rect.h, 0, 1);
var deltaH = 0, deltaW = 0;
switch (_this.type)
{
case FrozenAreaType.Top:
case FrozenAreaType.Center:
case FrozenAreaType.LeftTop:
case FrozenAreaType.Left:
{
deltaH = _this.worksheet.getCellTop(0, 1);
deltaW = _this.worksheet.getCellLeft(0,1);
break;
}
case FrozenAreaType.LeftBottom:
case FrozenAreaType.Bottom:
{
deltaW = _this.worksheet.getCellLeft(0,1);
break;
}
case FrozenAreaType.Right:
case FrozenAreaType.RightTop:
{
deltaH = _this.worksheet.getCellTop(0,1);
break;
}
}
if ( isOverlay )
_this.worksheet.overlayGraphicCtx.clearRect( x, y, w, h );
_this.worksheet.overlayGraphicCtx.clearRect( x - deltaW, y - deltaH, w, h );
else {
_this.worksheet.drawingGraphicCtx.clearRect( x, y, w, h );
_this.worksheet.drawingGraphicCtx.clearRect( x - deltaW, y - deltaH, w, h );
}
};
......
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