Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b6efc22 authored by Paul Sliwowski's avatar Paul Sliwowski Committed by Android Git Automerger
Browse files

am 0ae643d2: am dc72665b: Small workaround when text is slight bigger then all day event rect.

* commit '0ae643d2':
  Small workaround when text is slight bigger then all day event rect.
parents 757686f9 0ae643d2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
        }