GithubHelp home page GithubHelp logo

Comments (7)

ANovokmet avatar ANovokmet commented on June 19, 2024

To achieve a scrollable gantt you need to set the minWidth property ({Number} Minimum width of gantt area in px.). Try a high value first, for example, 3200.

What is an actual bug is that the demo application no longer scrolls when "week view" is chosen, which it used to. In the future, I have plans for progressive loading, which would enable you to scroll infinitely.

Please say if your issue is resolved.

from svelte-gantt.

 avatar commented on June 19, 2024

@ANovokmet Yes, thanks, my issue is resolved. However, after changing the minWidth, I have noticed that the date header also scrolls. What would be nice is if the date remained fixed in one position and whilst scrolling only the time headers (i.e. the hours) moved about.

But the infinite scrolling you mentioned is also a good feature to be implemented. When are this or any of the other issues planning to be implemented by or start being implemented?

from svelte-gantt.

ANovokmet avatar ANovokmet commented on June 19, 2024

@darekeapp
I agree that sticky headers would be nice. Maybe someone knows how to implement it? Maybe it's possible with CSS only?

I would like to say when I will work on these features but currently, I am really overwhelmed by work so I don't know. I try to keep a tab on all the issues and features.

from svelte-gantt.

ANovokmet avatar ANovokmet commented on June 19, 2024

Tried my hand at implementing sticky headers with CSS only. You can see it on the demo https://anovokmet.github.io/svelte-gantt/, first set Week view and then scroll right. They can be set on or off per header row.

from svelte-gantt.

 avatar commented on June 19, 2024

@ANovokmet That is really good! Only thing I would say that initially when the user clicks on Week view, the January 2021 is not even there until I scroll to the right. That is fine for the hours, but for the above header like the month, I think it should still be shown in the initial load of the week view page.

from svelte-gantt.

ANovokmet avatar ANovokmet commented on June 19, 2024

You could try to move the label to the left of the header cell, perhaps using .column-header-cell { justify-content: flex-start; }. I will close this issue as it is resolved.

from svelte-gantt.

 avatar commented on June 19, 2024

Just set max height for .sg-timeline-body.svelte-12fxs8g.
Uploading image.png…

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.