Comments (7)
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.
@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.
@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.
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.
@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.
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.
Just set max height for .sg-timeline-body.svelte-12fxs8g.
from svelte-gantt.
Related Issues (20)
- Svelte-gantt is not compatible in mobile mode HOT 9
- How do get timeline's width from SvelteGanttTable HOT 1
- Expanded only work correctly for the first row HOT 1
- Make an option to print the entire gantt HOT 3
- dateAdapter HOT 1
- Custom styling for the whole gantt chart in svelte with tailwind or custom css? HOT 1
- Cannot read properties of undefined (reading '$$') HOT 2
- Custom task component HOT 1
- Row filtering HOT 2
- External draggable example not working HOT 3
- Can't get the demo to run locally HOT 3
- scaling manually HOT 3
- Fix: querySelector usage in selectTask() throws Uncaught DOMException HOT 1
- Event `gantt.api.timeranges.on.resized` returns previous `from` and `to` values HOT 2
- Collapsing parent rows dynamically results in unexpected child behavior HOT 1
- Block pulling tasks HOT 1
- How could I set the rowHeight for the target single row? HOT 7
- Task Color HOT 1
- Back to full year?
- Cannot synchronize scrolling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-gantt.