Skip to content
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

Change default durationUnit to hours break viewPreset setting #5512

Closed
chuckn0rris opened this issue Nov 2, 2022 · 1 comment
Closed

Change default durationUnit to hours break viewPreset setting #5512

chuckn0rris opened this issue Nov 2, 2022 · 1 comment
Labels
bug Something isn't working forum Issues from forum invalid This doesn't seem right large-account Reported by large customer OEM OEM customer
Milestone

Comments

@chuckn0rris
Copy link

Forum post

Basic example has no durationUnit in JSON data. So when you apply this

import { TaskModel } from '@bryntum/gantt';

class MyTaskModel extends TaskModel {
    static get fields() {
        return [
            { name : 'durationUnit', defaultValue : 'hour' }
        ];
    }
}
const ganttConfig = {
    project: {
        taskModelClass : MyTaskModel,

It will change duration for all tasks from days to hours. the problem is that full project shown on the timeline, no scrollbar appeared, and if set custom viewPreset, it will be ignored and switched to no-scroll view anyway.

@chuckn0rris chuckn0rris added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Nov 2, 2022
@isglass isglass added the high-priority Urgent to have fixed label Nov 3, 2022
@isglass isglass added this to the 5.2.x milestone Nov 3, 2022
@JockeLindberg JockeLindberg self-assigned this Nov 11, 2022
@isglass isglass removed the high-priority Urgent to have fixed label Nov 21, 2022
@isglass
Copy link
Contributor

isglass commented Nov 21, 2022

Have debugged with @JockeLindberg, and it seems to be doing what it should. Closing ticket as invalid

@isglass isglass closed this as completed Nov 21, 2022
@isglass isglass added invalid This doesn't seem right and removed in progress labels Nov 21, 2022
@SergeyMaltsev SergeyMaltsev modified the milestones: 5.2.x, 5.2.4 Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum invalid This doesn't seem right large-account Reported by large customer OEM OEM customer
Projects
None yet
Development

No branches or pull requests

4 participants