Commit 1f6e6786 authored by mukai@chromium.org's avatar mukai@chromium.org

Calls Layout() explicitly when an icon is loaded.

Otherwise the layout manager doesn't recognize the change, so the added
image views won't appear on screen.

BUG=161094


Review URL: https://chromiumcodereview.appspot.com/12077016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179220 0039d316-1c4b-4281-b951-d872f2087c98
parent 31708f93
...@@ -63,6 +63,7 @@ class NotifierSettingsView::NotifierButton : public views::CustomButton, ...@@ -63,6 +63,7 @@ class NotifierSettingsView::NotifierButton : public views::CustomButton,
icon_view_->SetImage(icon); icon_view_->SetImage(icon);
icon_view_->SetImageSize(gfx::Size(kSettingsIconSize, kSettingsIconSize)); icon_view_->SetImageSize(gfx::Size(kSettingsIconSize, kSettingsIconSize));
} }
Layout();
SchedulePaint(); SchedulePaint();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment