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:
committed by
waddlesplash
parent
c1f451fa9b
commit
7f7f3618dd
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user