summaryrefslogtreecommitdiff
path: root/hud
diff options
authorSam Spilsbury <sam.spilsbury@canonical.com>2013-03-30 22:01:45 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2013-03-30 22:01:45 +0800
commit4c92259ebf3f084ccafca173127fab526749296c (patch)
treefd0f7739a14e40c61a76e766542f9fc8a1751d7a /hud
parent3cb57dd102cadad1e935412d1288774d26df4932 (diff)
Unrevert
(bzr r3248.4.3)
Diffstat (limited to 'hud')
-rw-r--r--hud/HudView.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/hud/HudView.cpp b/hud/HudView.cpp
index e32190218..3d743da5b 100644
--- a/hud/HudView.cpp
+++ b/hud/HudView.cpp
@@ -160,6 +160,12 @@ void View::ProcessGrowShrink()
LOG_DEBUG(logger) << "resizing to " << target_height << " (" << new_height << ")"
<< "View height: " << GetGeometry().height;
current_height_ = new_height;
+
+ nux::Geometry draw_content_geo(layout_->GetGeometry());
+ draw_content_geo.height = current_height_;
+
+ renderer_.AboutToShow();
+ renderer_.UpdateBlurBackgroundSize(draw_content_geo, GetAbsoluteGeometry(), true);
}
for (auto button : buttons_)
@@ -344,7 +350,12 @@ void View::AboutToShow()
{
visible_ = true;
overlay_window_buttons_->Show();
+
+ nux::Geometry draw_content_geo(layout_->GetGeometry());
+ draw_content_geo.height = current_height_;
+
renderer_.AboutToShow();
+ renderer_.UpdateBlurBackgroundSize(draw_content_geo, GetAbsoluteGeometry(), true);
}
void View::AboutToHide()