Commit 274f96c0 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Yормальный расчет для выравнивания в EqqArray с несколькими Run в контенте и...

Yормальный расчет для выравнивания в EqqArray с несколькими Run в контенте и мат объектами, без случая с Last элементом

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57987 954022d7-b5bf-4e40-9824-e11837661b57
parent f202badb
...@@ -1235,7 +1235,7 @@ ParaMath.prototype = ...@@ -1235,7 +1235,7 @@ ParaMath.prototype =
// this.absPos.x ~> this.X // this.absPos.x ~> this.X
// this.absPos.y ~> this.Y // this.absPos.y ~> this.Y
if(this.NotDraw == false) //if(this.NotDraw == false)
this.Root.draw( PDSE.X, PDSE.Y - this.Ascent, PDSE.Graphics); this.Root.draw( PDSE.X, PDSE.Y - this.Ascent, PDSE.Graphics);
PDSE.X += this.Width; PDSE.X += this.Width;
......
This diff is collapsed.
This diff is collapsed.
...@@ -559,19 +559,19 @@ CMathText.prototype = ...@@ -559,19 +559,19 @@ CMathText.prototype =
pGraphics.FillTextCode(X, Y, this.getCode()); //на отрисовку символа отправляем положение baseLine pGraphics.FillTextCode(X, Y, this.getCode()); //на отрисовку символа отправляем положение baseLine
}, },
setPosition: function(pos) setPosition: function(X, Y)
{ {
try try
{ {
if (!this.bJDraw) // for text if (!this.bJDraw) // for text
{ {
this.pos.x = pos.x + this.GapLeft; this.pos.x = X + this.GapLeft;
this.pos.y = pos.y; this.pos.y = Y;
} }
else // for symbol only drawing else // for symbol only drawing
{ {
this.pos.x = pos.x - this.rasterOffsetX; this.pos.x = X - this.rasterOffsetX;
this.pos.y = pos.y - this.rasterOffsetY + this.size.ascent; this.pos.y = Y - this.rasterOffsetY + this.size.ascent;
} }
} }
catch(e) catch(e)
...@@ -751,13 +751,13 @@ CMathAmp.prototype = ...@@ -751,13 +751,13 @@ CMathAmp.prototype =
}; };
} }
}, },
setPosition: function(pos) setPosition: function(X, Y)
{ {
this.pos.x = pos.x; this.pos.x = X;
this.pos.y = pos.y; this.pos.y = Y;
if(this.bEqqArray==false) if(this.bEqqArray==false)
this.AmpText.setPosition(pos); this.AmpText.setPosition(X, Y);
}, },
draw: function(x, y, pGraphics) draw: function(x, y, pGraphics)
{ {
......
This diff is collapsed.
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