* Made the cascading work a bit nicer and more consistent.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-26 09:50:10 +00:00
parent 6236ae8570
commit 19df6e10bd
+2 -4
View File
@@ -1084,10 +1084,8 @@ TMailApp::NewWindow(const entry_ref* ref, const char* to, bool resend,
r.bottom = r.top + screenFrame.Width();
// cascading windows
if (fWindowCount < 6)
r.OffsetBy(fWindowCount * 20, fWindowCount * 20);
else
r.OffsetBy((fWindowCount % 10) * 10 - 50, (fWindowCount % 10) * 10 - 50);
r.OffsetBy(((fWindowCount + 5) % 10) * 10 - 50,
((fWindowCount + 5) % 10) * 10 - 50);
// make sure the window is still on screen
if (r.left - 6 < screenFrame.left)