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

Commit 5672919e authored by Paul Sliwowski's avatar Paul Sliwowski Committed by Michael Bestas
Browse files

Small workaround when text is slight bigger then all day event rect.

Bug: 8972358
Change-Id: Ia4cb7fc5ef70e6dc97bcb0e9837e00f326db0804
parent 1cb6df10
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3600,7 +3600,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;
        }