Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PU-11
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
PU-11
Commits
80dd0ae1
Commit
80dd0ae1
authored
Apr 12, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 标题文字缩放
parent
266f49ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
form.component.html
src/app/form/form.component.html
+4
-0
Stage.ts
src/app/play/Stage.ts
+3
-0
No files found.
src/app/form/form.component.html
View file @
80dd0ae1
...
@@ -49,6 +49,10 @@
...
@@ -49,6 +49,10 @@
<textarea
rows=
"4"
nz-input
[(
ngModel
)]="
data
.
title
"
(
ngModelChange
)="
check
(
data
.
title
,
10
)"
(
blur
)="
saveContent
(
data
.
title
)"
></textarea>
<textarea
rows=
"4"
nz-input
[(
ngModel
)]="
data
.
title
"
(
ngModelChange
)="
check
(
data
.
title
,
10
)"
(
blur
)="
saveContent
(
data
.
title
)"
></textarea>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item
style=
"margin-top: -20px;"
>
<nz-form-label
[
nzSpan
]="
6
"
nzNoColon=
true
></nz-form-label>
<span>
(文本输入需要加空格,例:strawberry strawberry strawberry)
</span>
</nz-form-item>
</div>
</div>
<div
nz-row
>
<div
nz-row
>
<nz-form-item>
<nz-form-item>
...
...
src/app/play/Stage.ts
View file @
80dd0ae1
...
@@ -240,6 +240,9 @@ export class Stage extends Item {
...
@@ -240,6 +240,9 @@ export class Stage extends Item {
title
.
y
=
this
.
titleBg
.
height
/
2
;
title
.
y
=
this
.
titleBg
.
height
/
2
;
this
.
titleBg
.
addChild
(
title
);
this
.
titleBg
.
addChild
(
title
);
title
.
scaleY
=
Math
.
min
(
1
,
230
/
title
.
height
);
title
.
scaleX
=
Math
.
min
(
1
,
230
/
title
.
height
);
this
.
curTitleLabel
=
title
;
this
.
curTitleLabel
=
title
;
}
}
...
...
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