-
Notifications
You must be signed in to change notification settings - Fork 664
Scheduler: T1310524 — shadeUntilCurrentTime property is inconsistently applied to resources outside the viewport in virtual scrolling mode #32187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Tucchhaa
merged 9 commits into
DevExpress:26_1
from
Tucchhaa:shade_until_current_time_26_1
Jan 16, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fe67e4a
fix
Tucchhaa d231f60
test: add tests
sjbur 7065d4c
remove getRoundedCellWidth
Tucchhaa 06cb4a4
small refactoring
Tucchhaa 96f5804
fix qunit tests
Tucchhaa ff8d5ca
test: update tests
sjbur fb61361
revert span calculation
Tucchhaa ae5cb30
Merge branch 'shade_until_current_time_26_1' of https://github.com/Tu…
Tucchhaa 9820cbf
feat: update screenshots
sjbur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+26.8 KB
...imeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.7 KB
...-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.8 KB
...eIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.1 KB
...irtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 106 additions & 0 deletions
106
...estcafe-devextreme/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; | ||
| import Scheduler from 'devextreme-testcafe-models/scheduler'; | ||
| import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; | ||
| import { createWidget } from '../../../../../helpers/createWidget'; | ||
| import url from '../../../../../helpers/getPageUrl'; | ||
| import { testScreenshot } from '../../../../../helpers/themeUtils'; | ||
|
|
||
| fixture.disablePageReloads`Scheduler: Current Time Indication: Shader with Virtual Scrolling` | ||
| .page(url(__dirname, '../../../../container.html')) | ||
| .beforeEach(async (t) => { | ||
| await t.resizeWindow(2560, 600); | ||
| }); | ||
|
|
||
| const style = ` | ||
| .dx-scheduler-date-time-shader-top::before, | ||
| .dx-scheduler-date-time-shader-bottom::before, | ||
| .dx-scheduler-timeline .dx-scheduler-date-time-shader::before, | ||
| .dx-scheduler-date-time-shader-all-day { | ||
| background-color: red !important; | ||
| }`; | ||
|
|
||
| const resources = [ | ||
| { text: 'Room 1', id: 1, color: '#cb6bb2' }, | ||
| { text: 'Room 2', id: 2, color: '#56ca85' }, | ||
| { text: 'Room 3', id: 3, color: '#1e90ff' }, | ||
| { text: 'Room 4', id: 4, color: '#ff9747' }, | ||
| { text: 'Room 5', id: 5, color: '#ff6a00' }, | ||
| { text: 'Room 6', id: 6, color: '#ffc0cb' }, | ||
| ]; | ||
|
|
||
| test('Should render shader correct with virtual scrolling without current time indicator', async (t) => { | ||
| const scheduler = new Scheduler('#container'); | ||
| const { takeScreenshot, compareResults } = createScreenshotsComparer(t); | ||
|
|
||
| await testScreenshot( | ||
| t, | ||
| takeScreenshot, | ||
| 'shader-virtual-scrolling-week-start.png', | ||
| ); | ||
|
|
||
| await scheduler.scrollTo(new Date(2025, 9, 15, 17, 30), { roomId: 6 }); | ||
|
|
||
| await testScreenshot( | ||
| t, | ||
| takeScreenshot, | ||
| 'shader-virtual-scrolling-week-end.png', | ||
| ); | ||
|
|
||
| await t.expect(compareResults.isValid()) | ||
| .ok(compareResults.errorMessages()); | ||
| }).before(async () => { | ||
| await insertStylesheetRulesToPage(style); | ||
|
|
||
| await createWidget('dxScheduler', { | ||
| dataSource: [], | ||
| currentView: 'week', | ||
| views: ['week'], | ||
| groups: ['roomId'], | ||
| resources: [{ fieldExpr: 'roomId', dataSource: resources, label: 'Room' }], | ||
| startDayHour: 8, | ||
| endDayHour: 18, | ||
| currentDate: new Date(2025, 9, 15), | ||
| height: 400, | ||
| shadeUntilCurrentTime: true, | ||
| scrolling: { mode: 'virtual' }, | ||
| }); | ||
| }); | ||
|
|
||
| test('Should render shader correctly with virtual scrolling and current time indicator', async (t) => { | ||
| const scheduler = new Scheduler('#container'); | ||
| const { takeScreenshot, compareResults } = createScreenshotsComparer(t); | ||
|
|
||
| await testScreenshot( | ||
| t, | ||
| takeScreenshot, | ||
| 'shader-virtual-scrolling-week-start-with-current-time-indicator.png', | ||
| ); | ||
|
|
||
| await scheduler.scrollTo(new Date(2025, 9, 15, 17, 30), { roomId: 6 }); | ||
|
|
||
| await testScreenshot( | ||
| t, | ||
| takeScreenshot, | ||
| 'shader-virtual-scrolling-week-end-with-current-time-indicator.png', | ||
| ); | ||
|
|
||
| await t.expect(compareResults.isValid()) | ||
| .ok(compareResults.errorMessages()); | ||
| }).before(async () => { | ||
| await insertStylesheetRulesToPage(style); | ||
|
|
||
| await createWidget('dxScheduler', { | ||
| dataSource: [], | ||
| currentView: 'week', | ||
| views: ['week'], | ||
| groups: ['roomId'], | ||
| resources: [{ fieldExpr: 'roomId', dataSource: resources, label: 'Room' }], | ||
| startDayHour: 8, | ||
| endDayHour: 18, | ||
| currentDate: new Date(2025, 9, 15), | ||
| indicatorTime: new Date(2025, 9, 15, 17, 30), | ||
| height: 400, | ||
| shadeUntilCurrentTime: true, | ||
| scrolling: { mode: 'virtual' }, | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.