SimpleMobileTools / Simple-Calendar

A simple calendar with events, tasks, customizable colors, widgets and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
3.53k stars 1.15k forks source link

Fix for: Clicking on a day in the monthly view and selecting the wrong day #2235 #2269

Closed KBenMessaoud closed 10 months ago

KBenMessaoud commented 10 months ago

By altering the childHeight value to be half of the child view's measured height in our onLayout method, we've halved the size of the clickable areas in our calendar. This change has impacted how child views are arranged, particularly the layout() method that positions and sizes views within their container. Consequently, only clicks in the lower half of the calendar cells are recognized, even though the cells look visually unchanged.

All that's left to do is remove the red grid that helped us understand the problem.

ZONECLIQUABLE