forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Label::GetTextSize() behavior back to the original.
Previously Label::GetTextSize() was affected by the current layout. This seemed wrong, therefore my patch r320138 changed it to return the ideal text size. However this makes several regressions when Label is combined with BoxLayout or GridLayout, because they assumes the old behaviors. Ideally it's better to fix their layout logic, but before diving into the layout logic, I think I'll revert the behavior back to the original, because there can be some other affected views. Also BoxLayout's class comment says it wants to layout views based on their preferred size, it may be hard to update the behavior. BUG=467526, 468494 R=sky@chromium.org TEST=manually confirmed that reported views work well. the new test case verifies the old behavior. Review URL: https://codereview.chromium.org/1024753005 Cr-Commit-Position: refs/heads/master@{#321652}
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters