* 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:
@@ -1084,10 +1084,8 @@ TMailApp::NewWindow(const entry_ref* ref, const char* to, bool resend,
|
|||||||
r.bottom = r.top + screenFrame.Width();
|
r.bottom = r.top + screenFrame.Width();
|
||||||
|
|
||||||
// cascading windows
|
// cascading windows
|
||||||
if (fWindowCount < 6)
|
r.OffsetBy(((fWindowCount + 5) % 10) * 10 - 50,
|
||||||
r.OffsetBy(fWindowCount * 20, fWindowCount * 20);
|
((fWindowCount + 5) % 10) * 10 - 50);
|
||||||
else
|
|
||||||
r.OffsetBy((fWindowCount % 10) * 10 - 50, (fWindowCount % 10) * 10 - 50);
|
|
||||||
|
|
||||||
// make sure the window is still on screen
|
// make sure the window is still on screen
|
||||||
if (r.left - 6 < screenFrame.left)
|
if (r.left - 6 < screenFrame.left)
|
||||||
|
|||||||
Reference in New Issue
Block a user