Commit 18a4d697 authored by Ilya Kirillov's avatar Ilya Kirillov

Sending new parameter ascent for target.

parent fd334174
...@@ -1373,7 +1373,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu ...@@ -1373,7 +1373,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu
var Descender = Math.abs(g_oTextMeasurer.GetDescender()); var Descender = Math.abs(g_oTextMeasurer.GetDescender());
var Ascender = Height - Descender; var Ascender = Height - Descender;
Para.DrawingDocument.SetTargetSize( Height ); Para.DrawingDocument.SetTargetSize(Height, Ascender);
var RGBA; var RGBA;
Para.DrawingDocument.UpdateTargetTransform(Para.Get_ParentTextTransform()); Para.DrawingDocument.UpdateTargetTransform(Para.Get_ParentTextTransform());
...@@ -1465,7 +1465,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu ...@@ -1465,7 +1465,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu
__Y0 = Math.max( __Y0, ___Y0 ); __Y0 = Math.max( __Y0, ___Y0 );
__Y1 = Math.min( __Y1, ___Y1 ); __Y1 = Math.min( __Y1, ___Y1 );
Para.DrawingDocument.SetTargetSize( __Y1 - __Y0 ); Para.DrawingDocument.SetTargetSize(__Y1 - __Y0, Ascender);
Para.DrawingDocument.UpdateTarget( X, __Y0, PageAbs ); Para.DrawingDocument.UpdateTarget( X, __Y0, PageAbs );
} }
else if ( undefined != Para.Get_FramePr() ) else if ( undefined != Para.Get_FramePr() )
...@@ -1477,7 +1477,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu ...@@ -1477,7 +1477,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu
__Y0 = Math.max( __Y0, ___Y0 ); __Y0 = Math.max( __Y0, ___Y0 );
__Y1 = Math.min( __Y1, ___Y1 ); __Y1 = Math.min( __Y1, ___Y1 );
Para.DrawingDocument.SetTargetSize( __Y1 - __Y0 ); Para.DrawingDocument.SetTargetSize(__Y1 - __Y0, Ascender);
Para.DrawingDocument.UpdateTarget( X, __Y0, PageAbs ); Para.DrawingDocument.UpdateTarget( X, __Y0, PageAbs );
} }
else else
......
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