Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Boris Kocherov
sdkjs
Commits
718e41f2
Commit
718e41f2
authored
7 years ago
by
Oleg Korshul
Browse files
Options
Download
Email Patches
Plain Diff
target in notes
parent
796e9b7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
slide/Drawing/DrawingDocument.js
slide/Drawing/DrawingDocument.js
+9
-1
No files found.
slide/Drawing/DrawingDocument.js
View file @
718e41f2
...
...
@@ -913,6 +913,7 @@ function CDrawingDocument()
this
.
m_dTargetX
=
-
1
;
this
.
m_dTargetY
=
-
1
;
this
.
m_dTargetSize
=
1
;
this
.
m_dTargetAscent
=
0
;
this
.
TargetHtmlElement
=
null
;
this
.
TargetHtmlElementLeft
=
0
;
this
.
TargetHtmlElementTop
=
0
;
...
...
@@ -2083,6 +2084,11 @@ function CDrawingDocument()
var
boxY
=
0
;
var
boxB
=
_hh
-
targetSize
;
if
(
boxB
<
0
)
boxB
=
_hh
;
var
targetSizeAscent
=
2
+
(
this
.
m_dTargetAscent
*
g_dKoef_mm_to_pix
)
>>
0
;
yPos
+=
targetSizeAscent
;
var
nValueScrollVer
=
0
;
if
(
yPos
<
boxY
)
...
...
@@ -2107,9 +2113,10 @@ function CDrawingDocument()
this
.
CheckTargetDraw
(
x
,
y
,
!
isTargetOnNotes
);
}
this
.
SetTargetSize
=
function
(
size
)
this
.
SetTargetSize
=
function
(
size
,
ascent
)
{
this
.
m_dTargetSize
=
size
;
this
.
m_dTargetAscent
=
(
undefined
===
ascent
)
?
0
:
ascent
;
}
this
.
DrawTarget
=
function
()
{
...
...
@@ -5957,6 +5964,7 @@ function CNotesDrawer(page)
if
(
!
this
.
HtmlPage
.
m_oLogicDocument
.
Notes_OnResize
())
{
this
.
OnRecalculateNote
(
this
.
Slide
,
this
.
Width
,
this
.
Height
);
this
.
HtmlPage
.
m_oLogicDocument
.
RecalculateCurPos
();
}
}
};
...
...
This diff is collapsed.
Click to expand it.
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