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

tab_button的图标和text不能指定排列方式 #919

Open
ufbycd opened this issue Dec 18, 2024 · 2 comments
Open

tab_button的图标和text不能指定排列方式 #919

ufbycd opened this issue Dec 18, 2024 · 2 comments

Comments

@ufbycd
Copy link

ufbycd commented Dec 18, 2024

tab_button以前是以垂直方向排列图标和text,这符合大多数应用情况。然而现在变成水平排列的,与常规应用要求不符,且不能指定排列方式。

看看老式demo下都变成啥样了:
屏幕截图_20241218_160235

@xianjimli
Copy link
Member

改了,谢谢。在style加入:

icon_at="top" 

可以指定位置,请参考这个文档:https://github.com/zlgopen/awtk/blob/master/docs/how_to_use_icon_at_to_set_icon_position.md

@ufbycd
Copy link
Author

ufbycd commented Dec 30, 2024

感谢李大侠的快速响应。还有个问题:icon和text之间的间隔怎么指定,或者说text的位置偏移怎么设置?margin_top之类的style属性似乎只能应用于icon(?)

哦,反复试了几次才找到了合适的margin_top值来使icon和text的间隔趋于理想。

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

2 participants