Commit 7c62c08d authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправила выравнивание по ширине для inline формул

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61371 954022d7-b5bf-4e40-9824-e11837661b57
parent 88c77c1a
......@@ -945,6 +945,8 @@ ParaMath.prototype.Recalculate_Range_Width = function(PRSC, _CurLine, _CurRange)
var W = PRSC.Range.W;
PRSC.Words++;
var CurLine = _CurLine - this.Root.StartLine;
this.LinesWidths[CurLine] = W;
};
......
......@@ -1024,8 +1024,18 @@ CMathBase.prototype.Get_EndRangePos = function(_CurLine, _CurRange, SearchPos, D
};
CMathBase.prototype.Recalculate_Range_Spaces = function(PRSA, _CurLine, _CurRange, _CurPage)
{
PRSA.X += this.size.width;
PRSA.LastW = this.size.width;
var WidthVisible;
if ( 0 !== PRSA.LettersSkip )
{
WidthVisible = this.size.width;
PRSA.LettersSkip--;
}
else
WidthVisible = this.size.width + PRSA.JustifyWord;
PRSA.X += WidthVisible;
PRSA.LastW = WidthVisible;
};
CMathBase.prototype.Set_Paragraph = CParagraphContentWithParagraphLikeContent.prototype.Set_Paragraph;
CMathBase.prototype.Get_ElementByPos = CParagraphContentWithParagraphLikeContent.prototype.Get_ElementByPos;
......
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