Skip to content

legend >textStyle>lineHeight not work #15077

@AndyDog

Description

@AndyDog

Version

5.0.2

Steps to reproduce

legend过多出现了滚动条,然后图例的顶部会被截断一点点
image
legend:{
bottom: 6
data: ["均价(元/平方米)"]
height: 66
itemHeight: 12
itemWidth: 12
lineHeight: 66
pageIconColor: "#808C9A"
pageIconSize: 12
pageTextStyle: {color: "#EBEDEE", height: 10}
selected: {均价(元/平方米): true}
show: true
textStyle:
color: "#EBEDEE"
fontSize: 12
lineHeight: 58
padding: (4) [6, 0, 0, 0]
proto: Object
type: "scroll"
}

What is expected?

然后想通过设置legend.textStyle. lineHeight 高一点来让图例的文字往下居中,但是lineHeight 属性在5.x上不生效,在旧版本生效

What is actually happening?

实际结果 lineHeight 属性不生效

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: community

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions