Commit a14a1e5a authored by Yulun Wu's avatar Yulun Wu Committed by Commit Bot

CrOS: Update AppListFolder to respect 8 in margin on devices with narrow screens.

Bug: 984365
Change-Id: I06da9bc0f3498696133b13dd1c724eb6ef2f1beb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827743Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Commit-Queue: Yulun Wu <yulunwu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701183}
parent c2c6b351
......@@ -610,10 +610,10 @@ void AppListFolderView::UpdatePreferredBounds() {
0, GetAppListConfig().search_box_fullscreen_top_padding(), 0, 0);
}
// Avoid overlap with the search box widget.
container_bounds.Inset(0,
container_bounds.Inset(8,
search_box::kSearchBoxPreferredHeight +
SearchBoxView::GetFocusRingSpacing(),
0, 0);
8, 0);
preferred_bounds_.AdjustToFit(container_bounds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment