summaryrefslogtreecommitdiff
path: root/shortcuts
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-01-23 16:57:22 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-01-23 16:57:22 +0100
commitc1945172eb83afd310733d19829901f79c8b7ff1 (patch)
tree365b4337dcf24b1997fa50cb6af8f371bcf23f50 /shortcuts
parent73661027ebb7c5671a3ea103fd32b293180d21ee (diff)
ShortcutController: compute window content size when computing its offset
(bzr r2919.3.66)
Diffstat (limited to 'shortcuts')
-rw-r--r--shortcuts/ShortcutController.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/shortcuts/ShortcutController.cpp b/shortcuts/ShortcutController.cpp
index eb855df2e..323f12575 100644
--- a/shortcuts/ShortcutController.cpp
+++ b/shortcuts/ShortcutController.cpp
@@ -126,9 +126,6 @@ bool Controller::OnShowTimer()
modeller_->GetCurrentModel()->Fill();
EnsureView();
- view_->ComputeContentSize();
- view_window_->ComputeContentSize();
-
int monitor = UScreen::GetDefault()->GetMonitorWithMouse();
auto const& offset = GetOffsetPerMonitor(monitor);
@@ -160,6 +157,7 @@ nux::Point Controller::GetOffsetPerMonitor(int monitor)
{
EnsureView();
+ view_window_->ComputeContentSize();
auto const& view_geo = view_->GetAbsoluteGeometry();
auto const& monitor_geo = UScreen::GetDefault()->GetMonitorGeometry(monitor);