Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_pinjuzi
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
dfzx_cocos_pinjuzi
Commits
bdcef3a7
Commit
bdcef3a7
authored
Mar 24, 2021
by
Li MingZhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 居中bug
parent
625ec857
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
7 deletions
+9
-7
.DS_Store
.DS_Store
+0
-0
scene.js
play/assets/dfzx_cocos_pinjuzi/script/scene.js
+8
-6
.DS_Store
publish/.DS_Store
+0
-0
config.a38bb.json
publish/publish/android/dfzx_cocos_pinjuzi/config.a38bb.json
+0
-0
index.45344.jsc
publish/publish/android/dfzx_cocos_pinjuzi/index.45344.jsc
+0
-0
index.a38bb.jsc
publish/publish/android/dfzx_cocos_pinjuzi/index.a38bb.jsc
+0
-0
config.json
publish/publish/config.json
+1
-1
config.a38bb.json
publish/publish/ios/dfzx_cocos_pinjuzi/config.a38bb.json
+0
-0
index.45344.jsc
publish/publish/ios/dfzx_cocos_pinjuzi/index.45344.jsc
+0
-0
index.a38bb.jsc
publish/publish/ios/dfzx_cocos_pinjuzi/index.a38bb.jsc
+0
-0
No files found.
.DS_Store
View file @
bdcef3a7
No preview for this file type
play/assets/dfzx_cocos_pinjuzi/script/scene.js
View file @
bdcef3a7
...
...
@@ -930,13 +930,15 @@ cc.Class({
}
const
line2
=
lineArr
[
1
];
const
line2LastItem
=
line2
[
line2
.
length
-
1
];
const
totalLine2
=
line2LastItem
.
x
+
line2LastItem
.
width
/
2
;
const
offX2
=
(
maxW
-
totalLine2
)
/
2
for
(
let
i
=
0
;
i
<
line2
.
length
;
i
++
)
{
line2
[
i
].
x
+=
offX2
;
if
(
line2
)
{
const
line2LastItem
=
line2
[
line2
.
length
-
1
];
const
totalLine2
=
line2LastItem
.
x
+
line2LastItem
.
width
/
2
;
const
offX2
=
(
maxW
-
totalLine2
)
/
2
for
(
let
i
=
0
;
i
<
line2
.
length
;
i
++
)
{
line2
[
i
].
x
+=
offX2
;
}
}
// 拖拽异常 转一下坐标
for
(
let
i
=
0
;
i
<
childArr
.
length
;
i
++
)
{
const
wordNode
=
childArr
[
i
];
...
...
publish/.DS_Store
View file @
bdcef3a7
No preview for this file type
publish/publish/android/dfzx_cocos_pinjuzi/config.
45344
.json
→
publish/publish/android/dfzx_cocos_pinjuzi/config.
a38bb
.json
View file @
bdcef3a7
File moved
publish/publish/android/dfzx_cocos_pinjuzi/index.45344.jsc
deleted
100644 → 0
View file @
625ec857
File deleted
publish/publish/android/dfzx_cocos_pinjuzi/index.a38bb.jsc
0 → 100644
View file @
bdcef3a7
File added
publish/publish/config.json
View file @
bdcef3a7
{
"ios"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"45344"
},
"android"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"45344"
}}
\ No newline at end of file
{
"ios"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"a38bb"
},
"android"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"a38bb"
}}
\ No newline at end of file
publish/publish/ios/dfzx_cocos_pinjuzi/config.
45344
.json
→
publish/publish/ios/dfzx_cocos_pinjuzi/config.
a38bb
.json
View file @
bdcef3a7
File moved
publish/publish/ios/dfzx_cocos_pinjuzi/index.45344.jsc
deleted
100644 → 0
View file @
625ec857
File deleted
publish/publish/ios/dfzx_cocos_pinjuzi/index.a38bb.jsc
0 → 100644
View file @
bdcef3a7
File added
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