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

Add option to programatically position widgets within layouts #616

Open
Oblarg opened this issue Jun 5, 2019 · 2 comments
Open

Add option to programatically position widgets within layouts #616

Oblarg opened this issue Jun 5, 2019 · 2 comments

Comments

@Oblarg
Copy link

Oblarg commented Jun 5, 2019

Currently there is no way to programatically position widgets within a layout.

This could be accomplished without changing the current API; lists could be ordered with the specified widget column index, and grids with the row index/column index.

@SamCarlberg
Copy link
Member

Grid layouts already support this behavior (#604)

The proposal for working with list layouts seems funky - the method names wouldn't correspond to the actual behavior

@Oblarg
Copy link
Author

Oblarg commented Jun 6, 2019

Any reason the grid layouts use withSize to do this instead of withPosition? It seems a bit counter-intuitive, and requires software that does this automatically to detect whether a widget is in a tab or a layout to position it correctly.

The list integration might be minorly funky, but I still think it's pretty clear how it behaves; after all, you can think of a list as a 1-by-n grid, so the funkiness is just that only the row index is used and the column index is ignored.

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

No branches or pull requests

2 participants