Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow widgets to specify minw/minh according to their intrinsic size #17

Open
DaveInDev opened this issue Nov 20, 2022 · 0 comments
Open
Labels
enhancement New feature or request widget Issue specific to rtk.Widget and subclasses

Comments

@DaveInDev
Copy link

As you suggested, following this remark :
Button text will automatically clip to fit within the button's boundary. Adding minw makes sense in this case but, sorry, there currently is no way to force minw to always match the button's intrinsic size. But please feel free to open an issue on GitHub to request this feature.

I write this FR.
What I meant precisely is : having an attribute like "fitatleastinnercontent = true", that would verify that the size of a button will never go under its label size, so that it won't never be cropped, even if it's size is relative (expand = true or w=n%, etc...). Then, it would be preferable to see most right side buttons disappear into the right side of the wondow. Hope I'm clear....

@DaveInDev DaveInDev changed the title FR: FR: option to force button size to at least fit its label. Nov 20, 2022
@jtackaberry jtackaberry changed the title FR: option to force button size to at least fit its label. Allow widgets to specify minw/minh according to their intrinsic size Nov 20, 2022
@jtackaberry jtackaberry added enhancement New feature or request widget Issue specific to rtk.Widget and subclasses labels Nov 20, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request widget Issue specific to rtk.Widget and subclasses
Projects
None yet
Development

No branches or pull requests

2 participants