Skip to content

Commit 123e6ab

Browse files
committed
DynamicGrid: Ensure grid and overlay matches always
In case there are less rows than sidebar entries, the grids do not match and hence the minimum must be the amount of sidebar entries that already applies in case the overlay is empty.
1 parent 01cf122 commit 123e6ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/Notifications/Widget/TimeGrid/DynamicGrid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function assemble()
129129
]);
130130

131131
$overlay = $this->createGridOverlay();
132-
if ($overlay->isEmpty()) {
132+
if ($overlay->isEmpty() || count($overlay) < count($this->sideBar())) {
133133
$this->style->addFor($this, [
134134
'--primaryRows' => count($this->sideBar())
135135
]);

0 commit comments

Comments
 (0)