Title: [commits] (jeffrey) [11448] - Oops, lost logic setting a minimum height for lozenges in r11445.
Revision
11448
Author
jeffrey
Date
2006-08-17 21:14:33 -0700 (Thu, 17 Aug 2006)

Log Message

- Oops, lost logic setting a minimum height for lozenges in r11445.

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py (11447 => 11448)

--- trunk/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py	2006-08-18 04:10:59 UTC (rev 11447)
+++ trunk/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py	2006-08-18 04:14:33 UTC (rev 11448)
@@ -976,6 +976,7 @@
         
         height = int(self.hourHeight * (endTime.hour + endTime.minute/60.0) -
                      startY)
+        height = max(height, self.hourHeight / 2 + self.hourHeight % 2)
         
         return wx.Rect(startX, startY, width+1, height+1)
     




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to