UI polish for Assistant.
Fixes two UI issues:
1. "Nothing found on screen" card was still being clipped despite using
border-box box-sizing. Because the border is 1px wide, this is
probably caused by pixel rounding when we size our WebView. To work
around this we will just add a slight margin to the card to ensure
the border is drawn within WebView bounds.
2. When changing screen resolution with the UI open, multiline labels
would sometimes not be bounded correctly. To address this, we make
sure that the Label width matches parent width. We accomplish this
by using STRETCH cross axis alignment on the box layout (which is
default cross axis alignment).
Bug: b:116001082, b:115585763
Change-Id: Iec80955e45011d73816978c43ddf1235e49b476d
Reviewed-on: https://chromium-review.googlesource.com/1241470
Commit-Queue: David Black <dmblack@google.com>
Reviewed-by:
Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593744}
Showing
Please register or sign in to comment