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

Commit dc72665b authored by Paul Sliwowski's avatar Paul Sliwowski
Browse files

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

Bug: 8972358
Change-Id: Ia4cb7fc5ef70e6dc97bcb0e9837e00f326db0804
parent a8ad418a
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;
        }