webpositive: force download window on screen.

* When Download window is initially shown, it is correctly
  fully onscreen; however, adding a download resizes the
  window such that it becomes partially offscreen. Now,
  when the frame is resized, reposition the window onscreen
  again.

Fixes #12704
This commit is contained in:
Jessica Hamilton
2018-06-17 17:00:47 +00:00
committed by waddlesplash
parent c1f451fa9b
commit 7f7f3618dd
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -223,6 +223,13 @@ DownloadWindow::DispatchMessage(BMessage* message, BHandler* target)
}
void
DownloadWindow::FrameResized(float newWidth, float newHeight)
{
MoveOnScreen(B_DO_NOT_RESIZE_TO_FIT | B_MOVE_IF_PARTIALLY_OFFSCREEN);
}
void
DownloadWindow::MessageReceived(BMessage* message)
{
+1
View File
@@ -26,6 +26,7 @@ public:
virtual void DispatchMessage(BMessage* message,
BHandler* target);
virtual void FrameResized(float newWidth, float newHeight);
virtual void MessageReceived(BMessage* message);
virtual bool QuitRequested();