@@ -254,8 +254,9 @@ export class SBaseIconTextEdit extends SGraphEdit {
} // Get font
set font(v: SFont) {
- this.textItemList.forEach(item => {
- item.font = v
+ this.textItemList.forEach((item: SBaseTextEdit, index: number) => {
+ item.font = v;
+ item.moveTo(this.img.width * 0.5, v.size * (index - 0.125 - 0.5 * this.textItemList.length));
})
this.update();
} // Set font