Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GridNG] Placement of grid items with a negative margins
Previously, in |ContributionSizeForGridItem| margins were clamped to zero before adding them to the contribution. Therefore, grid items with negative margins were not being placed correctly. In this CL, the order of operations is flipped: add the margin to the contribution and the result is then clamped to zero. Bug: 1045599, 1225424 Change-Id: I6fc2726d4744d520430b2ca96b3509a396d73538 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3002394 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#898232}
- Loading branch information