diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-22 08:49:34 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-22 08:49:34 +0000 |
commit | ee55d5267badd2cf2a837040d620bd3b6b89854d (patch) | |
tree | bd3866f3df1e2797ecddf5abcc19864fe3b1a2d3 /chrome/browser | |
parent | ed1a45645a4cfb4fbcedd137d1eb3518aa4293b3 (diff) | |
download | chromium_src-ee55d5267badd2cf2a837040d620bd3b6b89854d.zip chromium_src-ee55d5267badd2cf2a837040d620bd3b6b89854d.tar.gz chromium_src-ee55d5267badd2cf2a837040d620bd3b6b89854d.tar.bz2 |
Use two columns for listing input languages to avoid an overflow.
This is a temporary workaround. We'll implement better options page
for input languages.
BUG=none
TEST=manual
Review URL: http://codereview.chromium.org/652036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39593 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/chromeos/options/system_page_view.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/options/system_page_view.cc b/chrome/browser/chromeos/options/system_page_view.cc index 3c21a1e..0b751ea 100644 --- a/chrome/browser/chromeos/options/system_page_view.cc +++ b/chrome/browser/chromeos/options/system_page_view.cc @@ -484,8 +484,11 @@ void TextInputSection::InitContents(GridLayout* layout) { checkbox->SetChecked(language_is_active); checkbox->set_listener(this); + // We use two columns. Start a column if the counter is an even number. + if (i % 2 == 0) { + layout->StartRow(0, double_column_view_set_id()); + } // Add the checkbox to the layout manager. - layout->StartRow(0, single_column_view_set_id()); layout->AddView(checkbox); } |