Skip to content

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

@DaveInDev

Description

@DaveInDev

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....

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwidgetIssue specific to rtk.Widget and subclasses

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions