summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 04:29:33 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 04:29:33 +0000
commit80329ed3eba32df17667516b03bbddb8afb278d7 (patch)
tree7ccdebd02a9052113468fded81d015e919cc732f
parent94a16133d76699be9a53fe23eeb1554208cd9c93 (diff)
downloadchromium_src-80329ed3eba32df17667516b03bbddb8afb278d7.zip
chromium_src-80329ed3eba32df17667516b03bbddb8afb278d7.tar.gz
chromium_src-80329ed3eba32df17667516b03bbddb8afb278d7.tar.bz2
Reduce ContentSettingBubbleContents radio item spacing.
Only prepend a padding row before the radio group items. The built-in spacing between radio items is sufficient. BUG=105905 TEST=Less padding between radio button elements in views content settings bubbles. Review URL: http://codereview.chromium.org/9301024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119847 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/views/content_setting_bubble_contents.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc
index 34c4048..88250b8 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.cc
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -212,14 +212,14 @@ void ContentSettingBubbleContents::Init() {
const ContentSettingBubbleModel::RadioGroup& radio_group =
bubble_content.radio_group;
if (!radio_group.radio_items.empty()) {
+ if (!bubble_content_empty)
+ layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing);
for (ContentSettingBubbleModel::RadioItems::const_iterator i =
radio_group.radio_items.begin();
i != radio_group.radio_items.end(); ++i) {
views::RadioButton* radio = new views::RadioButton(UTF8ToUTF16(*i), 0);
radio->set_listener(this);
radio_group_.push_back(radio);
- if (!bubble_content_empty)
- layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing);
layout->StartRow(0, single_column_set_id);
layout->AddView(radio);
bubble_content_empty = false;