Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
18a4d697
Commit
18a4d697
authored
Aug 09, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sending new parameter ascent for target.
parent
fd334174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
word/Editor/Run.js
word/Editor/Run.js
+3
-3
No files found.
word/Editor/Run.js
View file @
18a4d697
...
...
@@ -1373,7 +1373,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu
var
Descender
=
Math
.
abs
(
g_oTextMeasurer
.
GetDescender
());
var
Ascender
=
Height
-
Descender
;
Para
.
DrawingDocument
.
SetTargetSize
(
Height
);
Para
.
DrawingDocument
.
SetTargetSize
(
Height
,
Ascender
);
var
RGBA
;
Para
.
DrawingDocument
.
UpdateTargetTransform
(
Para
.
Get_ParentTextTransform
());
...
...
@@ -1465,7 +1465,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu
__Y0
=
Math
.
max
(
__Y0
,
___Y0
);
__Y1
=
Math
.
min
(
__Y1
,
___Y1
);
Para
.
DrawingDocument
.
SetTargetSize
(
__Y1
-
__Y0
);
Para
.
DrawingDocument
.
SetTargetSize
(
__Y1
-
__Y0
,
Ascender
);
Para
.
DrawingDocument
.
UpdateTarget
(
X
,
__Y0
,
PageAbs
);
}
else
if
(
undefined
!=
Para
.
Get_FramePr
()
)
...
...
@@ -1477,7 +1477,7 @@ ParaRun.prototype.Recalculate_CurPos = function(X, Y, CurrentRun, _CurRange, _Cu
__Y0
=
Math
.
max
(
__Y0
,
___Y0
);
__Y1
=
Math
.
min
(
__Y1
,
___Y1
);
Para
.
DrawingDocument
.
SetTargetSize
(
__Y1
-
__Y0
);
Para
.
DrawingDocument
.
SetTargetSize
(
__Y1
-
__Y0
,
Ascender
);
Para
.
DrawingDocument
.
UpdateTarget
(
X
,
__Y0
,
PageAbs
);
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment