Commit 80dd0ae1 authored by 范雪寒's avatar 范雪寒

fix: 标题文字缩放

parent 266f49ff
...@@ -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>
......
...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment