summaryrefslogtreecommitdiff
path: root/dash
diff options
authorhandsome_feng <445865575@qq.com>2016-02-25 11:01:41 +0800
committerhandsome_feng <445865575@qq.com>2016-02-25 11:01:41 +0800
commitc53db70039991eabc4bd73a2c1f9f8df7df981e1 (patch)
tree1db1dc456959adbed798ffc3ed1eabcdbecaf42f /dash
parent7bcfab71aac18b16eba22b2ac3af37995aa749e6 (diff)
fix the bug that can't click the scope bar when maximize dash
(bzr r4067.4.8)
Diffstat (limited to 'dash')
-rw-r--r--dash/DashController.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/dash/DashController.cpp b/dash/DashController.cpp
index 91d64c0d2..b55cf3ecc 100644
--- a/dash/DashController.cpp
+++ b/dash/DashController.cpp
@@ -496,6 +496,8 @@ bool Controller::IsCommandLensOpen() const
nux::Geometry Controller::GetInputWindowGeometry()
{
EnsureDash();
+ int launcher_size = Settings::Instance().LauncherSize(monitor_);
+ auto const& monitor_geo = UScreen::GetDefault()->GetMonitorGeometry(monitor_);
dash::Style& style = dash::Style::Instance();
nux::Geometry const& window_geo(window_->GetGeometry());
nux::Geometry const& view_content_geo(view_->GetContentGeometry());
@@ -508,7 +510,13 @@ nux::Geometry Controller::GetInputWindowGeometry()
geo.height += style.GetDashHorizontalBorderHeight().CP(view_->scale());
if (Settings::Instance().launcher_position() == LauncherPosition::BOTTOM)
- geo.y += view_content_geo.y - style.GetDashHorizontalBorderHeight().CP(view_->scale());
+ geo.y = monitor_geo.height - view_content_geo.height - launcher_size - style.GetDashHorizontalBorderHeight().CP(view_->scale());
+ }
+ else if (Settings::Instance().form_factor() == FormFactor::NETBOOK)
+ {
+ geo.height = monitor_geo.height;
+ if (Settings::Instance().launcher_position() == LauncherPosition::BOTTOM)
+ geo.height -= launcher_size;
}
return geo;