diff --git a/Web/scripts/schedule.js b/Web/scripts/schedule.js index 8d587f62a..2c765f0a5 100644 --- a/Web/scripts/schedule.js +++ b/Web/scripts/schedule.js @@ -691,9 +691,13 @@ function Schedule(opts, resourceGroups) { if (bufferStartEnd) { let bufferHeight = 41; let bufferTop = top; + var current_TR = t.find('tr[data-resourceid="' + res.ResourceId + '"]:first'); + const currentTrId = current_TR.attr('id'); if (opts.scheduleStyle === ScheduleTall) { bufferTop = bufferStartEnd.top; bufferHeight = bufferStartEnd.height; + } else if (opts.scheduleStyle === ScheduleStandard && typeof trHeights[currentTrId] !== 'undefined'){ + bufferHeight = trHeights[currentTrId]; } const style = `left:${bufferStartEnd.left}px; top:${bufferTop}px; width:${bufferStartEnd.width}px; height:${bufferHeight}px;`;