GithubHelp home page GithubHelp logo

Comments (7)

nitish-darji avatar nitish-darji commented on July 23, 2024

Hello,

I'm facing same issue when change view and have more than one timeRanges then only first timeRange object updated.

Also I've try gantt.refreshTimeRanges(); but not success.

Just reference below function call internal from lib

     function refreshTimeRanges() {
	timeRangeStore._update(({ ids, entities }) => {
		ids.forEach(id => {
			const timeRange = entities[id];
			const newLeft = columnService.getPositionByDate(timeRange.model.from) | 0;
			const newRight = columnService.getPositionByDate(timeRange.model.to) | 0;
			timeRange.left = newLeft;
			timeRange.width = newRight - newLeft;
		});
		return { ids, entities };
	});
}

Please help me out any workaround.

Thanks in advance.

from svelte-gantt.

ANovokmet avatar ANovokmet commented on July 23, 2024

Interesting, I've just tried the demo with multiple time ranges and I did not experience any issues. Any chance you share the rest of your gantt configuration?

from svelte-gantt.

ANovokmet avatar ANovokmet commented on July 23, 2024

Were there any errors in the console? I've fixed an error when time ranges get destroyed which could result in a stuck view.

from svelte-gantt.

nitish-darji avatar nitish-darji commented on July 23, 2024

thanks @ANovokmet for quick reply

I'm working on angular and [email protected] version

please check below attached demo link
https://stackblitz.com/edit/angular-fj36mp

after upgrade latest version now it's working as expected (except one issue when build project then one error occur as below)
node_modules/svelte-gantt/types/modules/table/tableHeader.d.ts:1:27

investigate error then found node_modules/svelte-gantt/types/modules/table/tableHeader.d.ts file import { SvelteRow } from "src/core/row"; when I replace with import { SvelteRow } from "../../core/row"; then it's working fine

Again thanks @ANovokmet

from svelte-gantt.

ANovokmet avatar ANovokmet commented on July 23, 2024

@nitish-darji thanks for the heads up on this error, I'll be investigating it.

from svelte-gantt.

V-Py avatar V-Py commented on July 23, 2024

Hello @nitish-darji, do you still experience this issue cause after some tests I can't reproduce it either with the current version ?
Thanks in advance :)

from svelte-gantt.

V-Py avatar V-Py commented on July 23, 2024

No answer and not able to reproduce the bug described

from svelte-gantt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.