lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 1d94263c authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

правка к ревизии 59379

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59380 954022d7-b5bf-4e40-9824-e11837661b57
parent f800dec9
...@@ -997,18 +997,19 @@ CMathContent.prototype = ...@@ -997,18 +997,19 @@ CMathContent.prototype =
this.pos.x = pos.x; this.pos.x = pos.x;
this.pos.y = pos.y; this.pos.y = pos.y;
var w = 0;
if(this.RecalcInfo.bEqqArray) if(this.RecalcInfo.bEqqArray)
{ {
var PosInfo = new CMathPointInfo(); var PosInfo = new CMathPointInfo();
PosInfo.SetInfoPoints(this.InfoPoints); PosInfo.SetInfoPoints(this.InfoPoints);
this.pos.x += PosInfo.GetAlign(); w += PosInfo.GetAlign();
} }
for(var i=0; i < this.Content.length; i++) for(var i=0; i < this.Content.length; i++)
{ {
var NewPos = new CMathPosition(); var NewPos = new CMathPosition();
NewPos.x = this.pos.x; NewPos.x = this.pos.x + w;
NewPos.y = this.pos.y + this.size.ascent; NewPos.y = this.pos.y + this.size.ascent;
if(this.Content[i].Type == para_Math_Run) if(this.Content[i].Type == para_Math_Run)
...@@ -1016,7 +1017,7 @@ CMathContent.prototype = ...@@ -1016,7 +1017,7 @@ CMathContent.prototype =
else else
this.Content[i].setPosition(NewPos); this.Content[i].setPosition(NewPos);
this.pos.x += this.Content[i].size.width; w += this.Content[i].size.width;
} }
}, },
......
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