Add PreferredSizeChanged() calls.
When a view changes size, it's important to call PreferredSizeChanged() so that its parent knows it might need to re-layout or repaint. The current code either fails to call PreferredSizeChanged() or instead lays out the current view in a couple of cases relevant to the toolbar, preventing us from using a consistent layout manager. This CL is a prerequisite for actually switching to a layout manager for the toolbar. Bug: 898632 Change-Id: I7154eb6ac58a11eca9069b25655a6c2666a704e0 Reviewed-on: https://chromium-review.googlesource.com/c/1372715 Commit-Queue: Dana Fried <dfried@chromium.org> Reviewed-by:Bret Sepulveda <bsep@chromium.org> Cr-Commit-Position: refs/heads/master@{#615969}
Showing
Please register or sign in to comment