summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Sliwowski <psliwowski@google.com>2013-07-16 14:18:46 -0700
committerPaul Sliwowski <psliwowski@google.com>2013-07-16 14:18:46 -0700
commitdc72665b57311a3f25ee6af07743e7c32aed754d (patch)
treed777da3e654a0565c123681a6fd76d180e21a2b5 /src
parenta8ad418a0552a03f40b1976b874044a99a5cba1c (diff)
downloadandroid_packages_apps_Calendar-dc72665b57311a3f25ee6af07743e7c32aed754d.tar.gz
android_packages_apps_Calendar-dc72665b57311a3f25ee6af07743e7c32aed754d.tar.bz2
android_packages_apps_Calendar-dc72665b57311a3f25ee6af07743e7c32aed754d.zip
Small workaround when text is slight bigger then all day event rect.
Bug: 8972358 Change-Id: Ia4cb7fc5ef70e6dc97bcb0e9837e00f326db0804
Diffstat (limited to 'src')
-rw-r--r--src/com/android/calendar/DayView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/calendar/DayView.java b/src/com/android/calendar/DayView.java
index ba736cd5..68ae6a46 100644
--- a/src/com/android/calendar/DayView.java
+++ b/src/com/android/calendar/DayView.java
@@ -3575,7 +3575,9 @@ public class DayView extends View implements View.OnCreateContextMenuListener,
}
}
- if (totalLineHeight == 0 || rect.top > bottom || rect.top + totalLineHeight < top) {
+ // + 2 is small workaround when the font is slightly bigger then the rect. This will
+ // still allow the text to be shown without overflowing into the other all day rects.
+ if (totalLineHeight == 0 || rect.top > bottom || rect.top + totalLineHeight + 2 < top) {
return;
}