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
79434ec3
Commit
79434ec3
authored
Jul 25, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
29a3ae94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
play.component.ts
src/app/play/play.component.ts
+5
-8
No files found.
src/app/play/play.component.ts
View file @
79434ec3
...
...
@@ -1166,7 +1166,6 @@ export class PlayComponent implements OnInit, OnDestroy {
}
showCheckPannel
(
checkResult
)
{
let
lastY
=
0
const
creatItem
=
(
height
,
withSplit
,
data
)
=>
{
let
padding
=
30
;
let
scrollContent
=
this
.
g_cartoon
.
getCartoonElement
(
"
check_scroll_pannel
"
)
...
...
@@ -1188,7 +1187,6 @@ export class PlayComponent implements OnInit, OnDestroy {
wordColorBG
.
ref
.
y
=
totalHeight
+
padding
+
64
/
2
totalHeight
+=
padding
+
64
;
console
.
log
(
"
单词高度
"
,
64
)
lastY
=
totalHeight
+
padding
+
64
/
2
;
let
word
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-label
"
,
data
.
word
,
"
DroidSansFallback
"
,
"
#FFFFFF
"
,
44
)
word
.
ref
.
x
=
360
/
2
...
...
@@ -1209,7 +1207,6 @@ export class PlayComponent implements OnInit, OnDestroy {
}
})
console
.
log
(
"
正确提示
"
,
120
)
lastY
=
totalHeight
+
50
+
60
totalHeight
+=
120
+
padding
;
let
word
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-label
"
,
data
.
rightWord
,
"
DroidSansFallback
"
,
"
#ffe9b1
"
,
44
)
...
...
@@ -1244,15 +1241,15 @@ export class PlayComponent implements OnInit, OnDestroy {
let
totalHeight
=
0
;
let
totalNum
=
checkResult
.
length
;
lastY
=
0
checkResult
.
forEach
((
element
,
index
)
=>
{
totalHeight
=
creatItem
(
totalHeight
,
!
(
index
==
(
totalNum
-
1
)),
element
)
});
this
.
m_totalScrollHeight
=
totalHeight
+
20
;
sliderBG
.
initSlider
(
scrollContent
.
windowHeight
,
this
.
m_totalScrollHeight
,
0
)
let
scroll
=
this
.
g_cartoon
.
getCartoonElement
(
"
check_scroll_pannel
"
)
scroll
.
ref
.
setSize
(
880
,
this
.
m_totalScrollHeight
)
let
checkPannel
=
this
.
g_cartoon
.
getCartoonElement
(
"
checkpannel_container
"
);
this
.
m_totalScrollHeight
=
lastY
;
console
.
log
(
totalHeight
)
sliderBG
.
initSlider
(
scrollContent
.
windowHeight
,
lastY
*
checkPannel
.
ref
.
scaleY
,
0
)
checkPannel
.
in
()
}
...
...
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