Fix notification view message sizing.
The MessageView renders a drop shadow[1] on Windows that adds insets to the content view of notifications. We need to set the reduced width as size of the |message_view_| to correctly calculate bounds and wrapping behavior. Before: https://imgur.com/pftjgrG After: https://imgur.com/wEsv5EN [1]: https://cs.chromium.org/chromium/src/ui/message_center/views/message_view.cc?l=107&rcl=2b3975c5de2635f5a436fb950b42fd5b657ae09f Bug: 1001047 Change-Id: I8a8b75aea4bdb800596d7790fafa541f2b50a6e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895333Reviewed-by:Peter Beverloo <peter@chromium.org> Commit-Queue: Richard Knoll <knollr@chromium.org> Cr-Commit-Position: refs/heads/master@{#712962}
Showing
Please register or sign in to comment