diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-29 13:56:43 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-29 13:56:43 +0000 |
commit | d1ffc5d07e6c895180f3b7ac9fceb5c5d4a26831 (patch) | |
tree | c8f1a371041290a3a4fafb29a269bc3283562a8b /ash | |
parent | 77691878e5e72c8e6c69eae71957942d5105ef89 (diff) | |
download | chromium_src-d1ffc5d07e6c895180f3b7ac9fceb5c5d4a26831.zip chromium_src-d1ffc5d07e6c895180f3b7ac9fceb5c5d4a26831.tar.gz chromium_src-d1ffc5d07e6c895180f3b7ac9fceb5c5d4a26831.tar.bz2 |
Fix resize percent for message layout
The message width is pre-calculated so resize precent should be 0 to ensure correct layout.
BUG=151813
TEST=See issue
Review URL: https://chromiumcodereview.appspot.com/10996070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/system/web_notification/web_notification_view.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ash/system/web_notification/web_notification_view.cc b/ash/system/web_notification/web_notification_view.cc index be6119b..ee36ffd 100644 --- a/ash/system/web_notification/web_notification_view.cc +++ b/ash/system/web_notification/web_notification_view.cc @@ -180,8 +180,9 @@ void WebNotificationView::InitView(WebNotificationTray* tray, const int message_width = kWebNotificationWidth - kWebNotificationIconSize - kWebNotificationButtonWidth - (padding_width * 3); columns->AddColumn(views::GridLayout::FILL, views::GridLayout::LEADING, - 100, /* resize percent */ - views::GridLayout::FIXED, message_width, message_width); + 0, /* resize percent */ + views::GridLayout::FIXED, + message_width, message_width); columns->AddPaddingColumn(0, padding_width); |