Fix DCHECK failure caused by no width restriction on Assistant UI.
Temporarily fix the Assistant UI flyout off the screen to the left when the container width grows larger than the screen width by explicitly setting x-axis value of container to be positive. But the side effect is when the screen is not wide enough, inside views will be clipped. Since it doesn't always make sense to apply a width restriction on Assistant UI to be less than the usable work area width (the workarea could be extremely narrow depending on the physical size and resolution combination), also the server side has assumptions about the card size, we may need a more comprehensive solution to resize the views correctly. In this CL, we just keep the 640 dip width assumption unchanged. Test: local compile and manually test. Bug: b:116807989 Change-Id: I257ac26cd28672ec284ff2555e46db5ab6a46246 Reviewed-on: https://chromium-review.googlesource.com/c/1250087Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: Meilin Wang <meilinw@chromium.org> Cr-Commit-Position: refs/heads/master@{#604010}
Showing
Please register or sign in to comment