Dynamically set up top margins for start surface
http://crrev.com/c/2247142 sets top margins for some sections in start surface. However, setting top margin for some sections with app:layout_scrollFlags="scroll" makes the scroll behaves weird for variation with omnibox_scroll_mode = quick. Without digging into the root cause, this CL fixes issue by dynamically setting the margins in code and skip setting top margins for OMNIBOX_ONLY variations. Bug: 1091988 Change-Id: I88e8b9b0524c148879262e0250adf9b3c57777c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250934 Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#779650}
Showing
Please register or sign in to comment