[GridNG] Fix center alignment.
Center alignment is based on the margin-box. AlignmentOffset was returning the offset to the margin-box instead of to the border-box. This patch adds "margin_start" to the calculation correcting this mistake. This was uncovered after: https://chromium-review.googlesource.com/c/chromium/src/+/2569848 landed. Bug: 1045599 Change-Id: If0c720ddae9a910ef2c08ee8efff22e8c2057982 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575502Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Reviewed-by:
Kurt Catti-Schmidt <kschmi@microsoft.com> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#834285}
Showing
Please register or sign in to comment