- Revision
- 11405
- Author
- jeffrey
- Date
- 2006-08-11 18:00:27 -0700 (Fri, 11 Aug 2006)
Log Message
- Tweak Mac y-alignment of timed lozenges, because they weren't lining
up with the hour lines perfectly
up with the hour lines perfectly
Modified Paths
Diff
Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py (11404 => 11405)
--- trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 2006-08-12 00:23:36 UTC (rev 11404) +++ trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 2006-08-12 01:00:27 UTC (rev 11405) @@ -435,7 +435,13 @@ rightSideCutOff) # new, smaller itemRect - itemRect = wx.Rect(itemRect.x + 1, itemRect.y + 1, + yDelta = 1 + if '__WXMAC__' in wx.PlatformInfo and isAnyTimeOrAllDay: + # on non-Mac's timed event's tops and bottoms are offset from + # hour lines by one pixel + yDelta = 0 + + itemRect = wx.Rect(itemRect.x + 1, itemRect.y + yDelta, itemRect.width - 2, itemRect.height - 2) if ENABLE_DEVICE_ORIGIN:
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
