[haiku-commits] r34268 - haiku/trunk/src/apps/mail

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 10:50:10 +0100 (CET)

Author: axeld
Date: 2009-11-26 10:50:10 +0100 (Thu, 26 Nov 2009)
New Revision: 34268
Changeset: http://dev.haiku-os.org/changeset/34268/haiku

Modified:
   haiku/trunk/src/apps/mail/MailApp.cpp
Log:
* Made the cascading work a bit nicer and more consistent.


Modified: haiku/trunk/src/apps/mail/MailApp.cpp
===================================================================
--- haiku/trunk/src/apps/mail/MailApp.cpp       2009-11-25 23:48:45 UTC (rev 
34267)
+++ haiku/trunk/src/apps/mail/MailApp.cpp       2009-11-26 09:50:10 UTC (rev 
34268)
@@ -1084,10 +1084,8 @@
                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)


Other related posts:

  • » [haiku-commits] r34268 - haiku/trunk/src/apps/mail - axeld