Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM04-3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
JM04-3
Commits
f7c67678
Commit
f7c67678
authored
Aug 16, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
cd7b2940
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
play.component.ts
src/app/play/play.component.ts
+13
-2
No files found.
src/app/play/play.component.ts
View file @
f7c67678
...
...
@@ -1356,7 +1356,18 @@ export class PlayComponent implements OnInit, OnDestroy {
heightData
.
wordRef
=
wordColorBG
.
ref
heightData
.
word
=
64
;
let
word
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-label
"
,
data
.
word
,
"
Aileron-Bold
"
,
"
#FFFFFF
"
,
48
)
let
maxLen
=
data
.
word
.
length
let
fs
=
48
if
(
maxLen
<=
14
)
{
fs
=
48
}
else
if
(
maxLen
<=
18
)
{
fs
=
36
}
else
if
(
maxLen
<=
20
)
{
fs
=
24
}
else
{
fs
=
20
}
let
word
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-label
"
,
data
.
word
,
"
Aileron-Bold
"
,
"
#FFFFFF
"
,
fs
)
word
.
ref
.
x
=
360
/
2
word
.
ref
.
y
=
64
/
2
+
5
wordColorBG
.
ref
.
addChild
(
word
.
ref
);
...
...
@@ -1447,7 +1458,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
})
this
.
m_totalScrollHeight
=
totalHeight
+
2
00
;
this
.
m_totalScrollHeight
=
totalHeight
+
heigthData
.
length
*
1
00
;
sliderBG
.
initSlider
(
scrollContent
.
windowHeight
,
this
.
m_totalScrollHeight
,
0
)
let
scroll
=
this
.
g_cartoon
.
getCartoonElement
(
"
check_scroll_pannel
"
)
scroll
.
ref
.
setSize
(
880
,
this
.
m_totalScrollHeight
)
...
...
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