[Reland]Fix the scrollable shelf's issue on relatively small screen
The CL was reverted by an unrelated crash. Now reland it. The link to the original CL: crrev.com/c/1815723 Original description: Now scrollable shelf ensures that when two arrow buttons show, the right gradient zone always cuts the half of the rightmost icon. To implement this feature, some available space is wasted. As a result, there may be no sufficient space for scrollable shelf on small-screen devices. In this CL, the width of the gradient zone becomes a constant. Bug: 1005989 Change-Id: I29fcb766562860d9d4ca5d21a497b193300ddd47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832914Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Andrew Xu <andrewxu@chromium.org> Cr-Commit-Position: refs/heads/master@{#701663}
Showing
Please register or sign in to comment