diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-29 22:34:12 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-29 22:34:12 +0000 |
commit | 403e46333b43009776a08273501e4ca8c5c06e12 (patch) | |
tree | bca4377303973c08124a3e440f8e0559b6253750 /views | |
parent | 50462ecbd8980074c460af0f32b5fc6449df8b87 (diff) | |
download | chromium_src-403e46333b43009776a08273501e4ca8c5c06e12.zip chromium_src-403e46333b43009776a08273501e4ca8c5c06e12.tar.gz chromium_src-403e46333b43009776a08273501e4ca8c5c06e12.tar.bz2 |
Try to add a useful comment about a case I hit today, at Scott's urging.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/558031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/grid_layout.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/grid_layout.h b/views/grid_layout.h index 499ee7b..6d6c61c 100644 --- a/views/grid_layout.h +++ b/views/grid_layout.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -275,6 +275,11 @@ class ColumnSet { // with no explicit alignment. fixed_width gives a specific width for the // column, and is only used if size_type == FIXED. min_width gives the // minimum width for the column. + // + // If none of the columns in a columnset are resizable, the views are only + // made as wide as the widest views in each column, even if extra space is + // provided. In other words, GridLayout does not automatically resize views + // unless the column is marked as resizable. void AddColumn(GridLayout::Alignment h_align, GridLayout::Alignment v_align, float resize_percent, |