I spent some time going through the plugin code and the problem appears to be in the following file;
modern-events-calendar-lite/app/skins/grid/render.php
The loop logic doesn’t handle all cases and will not generate the terminating </div> if the number of elements displayed in the last grid row is less than the number of columns configured for the grid.
I made the following changes to fix the bug …
30c30
< $rcount = 0 ;
—
> $rcount = 1 ;
34c34
< if ($rcount % $count == 0) echo ‘<div class=”row”>’;
—
> echo ($rcount == 1) ? ‘<div class=”row”>’ : ”;
284,285c284
< $rcount++;
< if($rcount % $count == 0)
—
> if($rcount == $count)
287a287
> $rcount = 0;
289a290
> $rcount++;
293c294
< <?php if($rcount > 0 && ($rcount % $count) != 0) echo ‘</div>’; ?>
—
> <?php if(($grid_limit % $count) != 0) echo ‘</div>’; ?>
This works for me so far, but please test for yourself before releasing the fix into production (and please back-up the original file before making changes).
I hope this helps other out there with this issues until a fix is released by the author.
M.