* Enlarged the cascading offset a bit, so that you can still read the title.

* Cascading should really be solved in a shared source, so that all apps behave
  in the same way (I don't consider Mail's cascading to be how it should be
  either, btw).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34269 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-11-26 10:06:10 +00:00
parent 19df6e10bd
commit 5155f7ac75

View File

@ -1084,8 +1084,8 @@ TMailApp::NewWindow(const entry_ref* ref, const char* to, bool resend,
r.bottom = r.top + screenFrame.Width();
// cascading windows
r.OffsetBy(((fWindowCount + 5) % 10) * 10 - 50,
((fWindowCount + 5) % 10) * 10 - 50);
r.OffsetBy(((fWindowCount + 5) % 10) * 15 - 75,
((fWindowCount + 5) % 10) * 15 - 75);
// make sure the window is still on screen
if (r.left - 6 < screenFrame.left)