Skip to content

Commit c53bdd5

Browse files
committed
fix height of buffer to match adjusted height of reservation and table line
1 parent 3da795d commit c53bdd5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Web/scripts/schedule.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,13 @@ function Schedule(opts, resourceGroups) {
691691
if (bufferStartEnd) {
692692
let bufferHeight = 41;
693693
let bufferTop = top;
694+
var current_TR = t.find('tr[data-resourceid="' + res.ResourceId + '"]:first');
695+
const currentTrId = current_TR.attr('id');
694696
if (opts.scheduleStyle === ScheduleTall) {
695697
bufferTop = bufferStartEnd.top;
696698
bufferHeight = bufferStartEnd.height;
699+
} else if (opts.scheduleStyle === ScheduleStandard && typeof trHeights[currentTrId] !== 'undefined'){
700+
bufferHeight = trHeights[currentTrId];
697701
}
698702

699703
const style = `left:${bufferStartEnd.left}px; top:${bufferTop}px; width:${bufferStartEnd.width}px; height:${bufferHeight}px;`;

0 commit comments

Comments
 (0)