Add fixed-width support to BubbleDialogDelegate
This enables removing overrides to CalculatePreferredSize() that try to return a fixed size to fit within a specific dialog width. It also fixes infinite recursion in such overrides where there's no LayoutManager and GetHeightForWidth() defaults to calling GetPreferredSize(), which calls the CalculatePreferredSize() override that calls GetHeightForWidth(). Bug: 1128500 Change-Id: I75508e790cd6d7fdc31a40b5dad96366ddf8545c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2466141 Commit-Queue: Peter Boström <pbos@chromium.org> Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#816403}
Showing
Please register or sign in to comment