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

Alignment in GridLayout #276

Open
christian-intra2net opened this issue Aug 10, 2023 · 0 comments
Open

Alignment in GridLayout #276

christian-intra2net opened this issue Aug 10, 2023 · 0 comments

Comments

@christian-intra2net
Copy link

Hi, thanks a lot for native-windows-gui, it's great to produce such simple lightweight GUIs in Rust.

I have one issue I failed to solve after reading documentation, examples and source code: how can I define in a GridLayout where a certain element should be inside it's "grid cell" if it does not fill it completely? This is not an issue for e.g. buttons or labels, because they just adjust their size to fill up their grid cell, so defining the alignment of the text they contain is enough in almost all cases. But when I add a checkbox (with empty and thus invisible label), this will position the check box as far left as possible inside its grid cell (probably leaving as much space for the empty label as possible).

Is there a way to do this with native-windows-gui? Did I overlook something?

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