-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ASStackLayoutSpec] Fix interitem spacing not being reset on new lines and add snapshot tests #trivial #491
Conversation
🚫 CI failed with log |
1e30ca9
to
36506fb
Compare
🚫 CI failed with log |
Oh wow, thanks for this @nguyenhuy, I didn't know you would get on this so quickly. |
2534353
to
62fa873
Compare
@flovouin No worries at all! I'm working on improving And I found a bug :) Please see the fix included in this PR here. The problem is that for the last item that can't fit into an existing line, we include interitem spacing into its stack dimension sum and carry that onto a new line. It then causes another item, which otherwise should be the last item of that line, to be pushed to yet another line (see screenshots below). Fix by resetting interitem spacing when we break to a new line. |
Oh I see, nice catch! That was a stupid mistake on my side, sorry about that. :/ |
…s, snapshot tests included
62fa873
to
281e3b9
Compare
🚫 CI failed with log |
I didn't catch it during code review, so it's my fault as well :P |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really awesome work from @flovouin and @nguyenhuy on all of that!
Thanks, @maicki. |
…s and add snapshot tests #trivial (TextureGroup#491) * Add snapshot tests for interitem and interline spacings of stack spec * Improve comment * Make sure item spacings are properly considered and reset on new lines, snapshot tests included
Follow up on #472. Closes #489.