Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label设置多行是对齐属性失效 #513

Open
GodLikeDota opened this issue Oct 30, 2024 · 0 comments
Open

Label设置多行是对齐属性失效 #513

GodLikeDota opened this issue Oct 30, 2024 · 0 comments

Comments

@GodLikeDota
Copy link

GodLikeDota commented Oct 30, 2024

当Label控件设置singleline属性为false,也就是多行,并且设置长度为固定值,高度是auto的情况下,align设置的对齐方式无效,设置align=right的情况下,显示依然是左对齐,大概跟了下RenderContext_GdiPlus::DrawText函数,stringFormat设置的属性应该是正确的,但是不知道为什么多行情况下右对齐就无效了,大概的代码如下:
Label text="aaaaabbbbcccc" width="30" height="auto" signleline="false"/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant