min_width for ColumnSet::AddColumn is ignored |
||||||
Issue description
Version: 55.0.2869.0
OS: Linux
Create a ColumnSet:
views::ColumnSet* column_set = layout->AddColumnSet(column_set_id);
column_set->AddColumn(views::GridLayout::FILL,
views::GridLayout::FILL,
1,
views::GridLayout::USE_PREF,
0,
kMinUsernameSize);
column_set->AddColumn(views::GridLayout::FILL,
views::GridLayout::FILL,
1,
views::GridLayout::USE_PREF,
0,
0);
Put a long text into the second column. The first column will basically disappear despite |kMinUsernameSize| was specified. It's used only if there is enough space.
,
Sep 22 2016
,
Sep 28 2016
If this isn't a bug then what's the usecase for setting the minimal width?
,
Sep 28 2016
I'm not sure what you mean. This is a bug, that's why I filed it.
,
Oct 11 2017
,
Oct 11 2017
,
Oct 11 2017
,
Oct 12 2017
,
Oct 13 2017
This was fixed at https://chromium.googlesource.com/chromium/src.git/+/eaeea6e5e051d6467a4f58e355c229d1094791a0 . But you have to opt into the new behavior. I filed 774633 to make the new behavior the default. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by sky@chromium.org
, Sep 22 2016