Skip to content

富文本垂直对齐失效问题 #99

@nameLogen

Description

@nameLogen

问题表现:富文本上中下对齐方式失效,设置了居中没有效果
原因:因为GRichTextField 没有重写垂直对齐接口,导致调用到 GTextField 中的,但是 GTextField this._label 不存在导致无法赋值成功,也就失效了
修改:在GRichTextField.ts 中 增加对垂直对齐的重写,
public get verticalAlign(): VerticalTextAlignment {
return this._richText.verticalAlign;
}

public set verticalAlign(value: VerticalTextAlignment) {
    this._richText.verticalAlign = value;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions