Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-17
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
YM5-17
Commits
f77dff79
Commit
f77dff79
authored
Apr 28, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复浏览器放大或者缩小导致换行异常的问题
parent
a7a2b357
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Unit.ts
src/app/play/Unit.ts
+1
-0
play.component.ts
src/app/play/play.component.ts
+1
-3
No files found.
src/app/play/Unit.ts
View file @
f77dff79
...
@@ -1229,6 +1229,7 @@ export class RichText extends Label {
...
@@ -1229,6 +1229,7 @@ export class RichText extends Label {
this
.
_width
=
mW
;
this
.
_width
=
mW
;
//this.refreshAnchorOff();
this
.
ctx
.
restore
();
this
.
ctx
.
restore
();
}
}
...
...
src/app/play/play.component.ts
View file @
f77dff79
...
@@ -734,7 +734,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -734,7 +734,7 @@ export class PlayComponent implements OnInit, OnDestroy {
text
.
fontName
=
"
GOTHICB
"
;
text
.
fontName
=
"
GOTHICB
"
;
text
.
textArr
=
getTextArr
(
i
+
1
,
sentence
);
text
.
textArr
=
getTextArr
(
i
+
1
,
sentence
);
text
.
disH
=
20
;
text
.
disH
=
20
;
text
.
maxWidth
=
bg
.
width
;
text
.
maxWidth
=
680
;
text
.
setScaleXY
(
this
.
mapScale
);
text
.
setScaleXY
(
this
.
mapScale
);
text
.
refreshSize
();
text
.
refreshSize
();
text
.
y
=
y
+
text
.
getBoundingBox
().
height
/
2
;
text
.
y
=
y
+
text
.
getBoundingBox
().
height
/
2
;
...
@@ -915,8 +915,6 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -915,8 +915,6 @@ export class PlayComponent implements OnInit, OnDestroy {
indexItem
.
sentence
=
sentence
;
indexItem
.
sentence
=
sentence
;
}
}
this
.
playAudio
(
sentence
.
audioUrl
,
true
);
let
spr
;
let
spr
;
let
index
=
-
1
;
let
index
=
-
1
;
...
...
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