From 0867bda58fd9c6befdbcd7d73329522b5c4651bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 10 Nov 2005 16:22:10 +0000 Subject: [PATCH] Offscreen is also in the other direction... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14829 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/fonts/MainWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/preferences/fonts/MainWindow.cpp b/src/preferences/fonts/MainWindow.cpp index cd4032b8ef..03191a3955 100644 --- a/src/preferences/fonts/MainWindow.cpp +++ b/src/preferences/fonts/MainWindow.cpp @@ -92,7 +92,9 @@ MainWindow::MainWindow() // make sure window is on screen BScreen screen(this); if (Frame().left > screen.Frame().right - 10 - || Frame().top > screen.Frame().bottom - 10) + || Frame().top > screen.Frame().bottom - 10 + || Frame().right < screen.Frame().left + 10 + || Frame().bottom < screen.Frame().top + 10) _Center(); }