SOLVED IT!! (Mostly)
Again thanks to Roel for the essential sorting code, and to Stack Overflow for the Flex magic.
(stackoverflow
com
/a/61969131/13102734)
Here's what the finished result looks like:
greiginsydney
com
/random
/luxCalBottomJustify-works.jpg
I've tested this against Year, Month and Week views on Edge & Firefox. I *doesn't* look like it's working under Safari on iDevices, although it might just be not picking up the new style sheet yet, and that's not something you can force. (Alas, it's not working on Chrome under iOS26 either).
*As well as* my subverted sort code in the post above, you need to edit css.php & toolbox.php:
css.php:
.cell {min-height:100px;display:flex;flex-direction:column;}toolbox.php, in fn colorStyle:
$eStyle = ($evt['cco'] ? 'color:'.$evt['cco'].';' : '').($evt['cbg'] ? 'background-color:'.$evt['cbg'].';' : $defBgd);
if ($evt['cid'] == 18) {
$eStyle .= 'margin-top:auto;';
}
}Roel might be able to make that test for Category 18 a one-liner, but that's above me.
Obviously this is still a TERRIBLE kludge because it's baking a category number into the .php, but did i mention it works??