Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 12575005: make BoxLayout use and respect GetHeightForWidth(). (Closed)

Created:
7 years, 9 months ago by Evan Stade
Modified:
7 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

make BoxLayout use and respect GetHeightForWidth() (for vertical layouts). BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188288

Patch Set 1 #

Patch Set 2 : minimize changes #

Patch Set 3 : unit test #

Total comments: 4

Patch Set 4 : BoxLayout::GetPreferredHeightForWidth #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -34 lines) Patch
M ui/views/layout/box_layout.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M ui/views/layout/box_layout.cc View 1 2 3 6 chunks +74 lines, -31 lines 0 comments Download
M ui/views/layout/box_layout_unittest.cc View 1 2 3 2 chunks +37 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Evan Stade
7 years, 9 months ago (2013-03-13 01:02:38 UTC) #1
sky
https://codereview.chromium.org/12575005/diff/4001/ui/views/layout/box_layout.cc File ui/views/layout/box_layout.cc (right): https://codereview.chromium.org/12575005/diff/4001/ui/views/layout/box_layout.cc#newcode82 ui/views/layout/box_layout.cc:82: gfx::Size BoxLayout::GetPreferredSize(View* host) { You should also override GetPreferredSizeForWidth ...
7 years, 9 months ago (2013-03-13 14:03:03 UTC) #2
Evan Stade
https://codereview.chromium.org/12575005/diff/4001/ui/views/layout/box_layout.cc File ui/views/layout/box_layout.cc (right): https://codereview.chromium.org/12575005/diff/4001/ui/views/layout/box_layout.cc#newcode82 ui/views/layout/box_layout.cc:82: gfx::Size BoxLayout::GetPreferredSize(View* host) { On 2013/03/13 14:03:03, sky wrote: ...
7 years, 9 months ago (2013-03-13 23:49:56 UTC) #3
sky
Do Labels and Links have the same preferred height now?
7 years, 9 months ago (2013-03-14 00:13:09 UTC) #4
Evan Stade
On 2013/03/14 00:13:09, sky wrote: > Do Labels and Links have the same preferred height ...
7 years, 9 months ago (2013-03-14 01:14:23 UTC) #5
sky
Not sure how this happened, but that comment was meant for your other view (StyledLabel). ...
7 years, 9 months ago (2013-03-14 14:50:01 UTC) #6
sky
LGTM
7 years, 9 months ago (2013-03-14 14:51:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/12575005/10001
7 years, 9 months ago (2013-03-14 18:23:39 UTC) #8
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 07:38:41 UTC) #9
Message was sent while issue was closed.
Change committed as 188288

Powered by Google App Engine
This is Rietveld 408576698