Skip to content

Commit 4f28229

Browse files
committed
refactor: undo refactor changes
1 parent 91f0c6e commit 4f28229

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
177177
private getWorkSpaceMinHeight() {
178178
let minHeight = this.getWorkSpaceHeight();
179179

180-
const workspaceContainerHeight = this.$flexContainer ? getOuterHeight(this.$flexContainer, true) : 0;
180+
const workspaceContainerHeight = getOuterHeight(this.$flexContainer, true);
181181

182182
if (minHeight < workspaceContainerHeight) {
183183
minHeight = workspaceContainerHeight;

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_grouped_strategy_vertical.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { getBoundingRect } from '@js/core/utils/position';
2-
import { hasWindow } from '@js/core/utils/window';
32
import { calculateDayDuration, getVerticalGroupCountClass } from '@ts/scheduler/r1/utils/index';
43
import { WORK_SPACE_BORDER_PX } from '@ts/scheduler/workspaces/const';
54

@@ -93,10 +92,7 @@ class VerticalGroupedStrategy {
9392

9493
const dayHeight = (calculateDayDuration(startDayHour, endDayHour) / hoursInterval) * this._workSpace.getCellHeight();
9594
const scrollTop = this.getScrollableScrollTop();
96-
let headerRowHeight = 0;
97-
if (hasWindow() && this._workSpace.$headerPanelContainer) {
98-
headerRowHeight = getBoundingRect(this._workSpace.$headerPanelContainer.get(0) as HTMLElement).height;
99-
}
95+
const headerRowHeight = getBoundingRect(this._workSpace.$headerPanelContainer.get(0)).height;
10096

10197
let topOffset = groupIndex * dayHeight + headerRowHeight + this._workSpace.option('getHeaderHeight')() - scrollTop;
10298

0 commit comments

Comments
 (0)