-
Notifications
You must be signed in to change notification settings - Fork 616
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
grid solver constraint not working #2566
Comments
Doesn't Unfortunately there isn't anyone in the current maintainer group that understands kiwisolver or how this stuff works. Additionally, you'll have trouble (like you are already) hacking the solver as I believe any time widgets are updated the constraints may be reset. On top of that, even if you get the solver to be what you want doing |
In this simple case That's truly unfortunate. It would be really useful to be able to supply user constraints to the layout. |
There's always a chance that it will work in some way, but I'm not sure there is anyone here that can help so it may come down to printing out the current solver state yourself. There may be other methods on the ViewBox that would trigger/force an update or you could maybe tell the Canvas to "resize" to the same size and that might trigger the updates properly. Off the top of my head though I'm having trouble coming up with an easy solution. |
Thanks @djhoese . If I find the bandwidth to dig into this, those are some good suggestions. |
I'm having similar issues to #1268 , but the subgrids are not an appropriate solution for me. I'm trying to roll my own constraints with Kiwisolver but they are not working (see example code below). Perhaps someone can tell me what I am doing wrong.
In the following code I am trying to simply constrain two side-by-side views so that one is always twice as wide as the other. However, this code results in two equal width views. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: