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

поправлена позиция (с учетом Ascent) для элементов bJDraw

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55695 954022d7-b5bf-4e40-9824-e11837661b57
parent 02af5235
...@@ -312,9 +312,12 @@ CMathText.prototype = ...@@ -312,9 +312,12 @@ CMathText.prototype =
if( ! this.bJDraw) // for text if( ! this.bJDraw) // for text
this.pos = {x : pos.x, y: pos.y}; this.pos = {x : pos.x, y: pos.y};
else // for symbol only drawing else // for symbol only drawing
this.pos = {x: pos.x - this.rasterOffsetX, y: pos.y - this.rasterOffsetY}; {
//this.pos = {x: pos.x + this.GapLeft, y: pos.y + this.size.ascent}; var x = pos.x - this.rasterOffsetX,
y = pos.y - this.rasterOffsetY + this.size.ascent;
this.pos = {x: x, y: y};
}
}, },
setCoeffTransform: function(sx, shx, shy, sy) setCoeffTransform: function(sx, shx, shy, sy)
{ {
......
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