summaryrefslogtreecommitdiffstats
path: root/views/controls/image_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/image_view.cc')
-rw-r--r--views/controls/image_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/controls/image_view.cc b/views/controls/image_view.cc
index bf6219b..4ef4ba0 100644
--- a/views/controls/image_view.cc
+++ b/views/controls/image_view.cc
@@ -21,6 +21,7 @@ ImageView::~ImageView() {
void ImageView::SetImage(const SkBitmap& bm) {
image_ = bm;
+ PreferredSizeChanged();
SchedulePaint();
}
@@ -40,6 +41,7 @@ const SkBitmap& ImageView::GetImage() {
void ImageView::SetImageSize(const gfx::Size& image_size) {
image_size_set_ = true;
image_size_ = image_size;
+ PreferredSizeChanged();
}
bool ImageView::GetImageSize(gfx::Size* image_size) {