-
Notifications
You must be signed in to change notification settings - Fork 7
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
Layout sizes not updating after changes #3
Comments
Okay, from some more research I'm deducing this might be the way it's supposed to work? Do I actually have to remove a node from the tree, remove its children, reset it, then add it back, and add its children back, just to do an update? |
Okay, now I'm really confused. Removing and resetting the node doesn't seem to make it update either.
|
@NickAcPT Sorry to bother you about this again. I'm sure you probably don't care much about this project much anymore but it's currently the only version of Yoga I can find that works on Java desktop. You are a lifesaver for making this. Do you know if I'm doing something wrong here, or is this just not working? |
I think this is a bug. When I try using
node.setWidthPercent
and recalculating the layout, it doesn't actually calculate the new layout position. It seems to only calculate on the firstcalculateLayout
call, then all subsequent calls do nothing.The following test fails on the last assertion after changing the width for a second time.
The text was updated successfully, but these errors were encountered: