Commit 1fe9051
committed
fix(schedule): correct tall view height for reservations ending before hidden blocked period
In the ScheduleTall (flipped) view, reservation height is calculated as
`endTd.top - startTd.top`, where `endTd` is the row whose `data-min`
matches the reservation's end timestamp. This row is normally the
blocked period that immediately follows the reservation.
When `hide.blocked.periods = true`, blocked period rows are absent from
the DOM. The fallback `findClosestEnd()` returns the last reservable
slot whose start time ≤ reservation end — one row too early. For a
multi-slot reservation this produces a height that stops at the *top* of
the last reservable slot rather than its bottom, leaving that slot
visually empty.
The single-slot case was already handled by the existing `height === 0`
guard. Extend the fix to multi-slot reservations by adding
`endTd.outerHeight()` to height whenever `findClosestEnd` was used
(`calculatedAdjustment > 0`) and height is already non-zero.
Closes: #9201 parent a959247 commit 1fe9051
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
215 | 224 | | |
216 | 225 | | |
217 | 226 | | |
| |||
666 | 675 | | |
667 | 676 | | |
668 | 677 | | |
669 | | - | |
670 | | - | |
| 678 | + | |
| 679 | + | |
671 | 680 | | |
672 | 681 | | |
673 | 682 | | |
| |||
702 | 711 | | |
703 | 712 | | |
704 | 713 | | |
705 | | - | |
706 | | - | |
| 714 | + | |
| 715 | + | |
707 | 716 | | |
708 | 717 | | |
709 | 718 | | |
| |||
0 commit comments