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

Misaligned grids on windows machine #114

Closed
glencoden opened this issue May 22, 2024 · 2 comments
Closed

Misaligned grids on windows machine #114

glencoden opened this issue May 22, 2024 · 2 comments

Comments

@glencoden
Copy link

In our gantt chart, we have two grids next to each other with content overflow only on one side. On windows machines, the space taken up by the scrollbar on the overflow-content side breaks the grid alignment.

Here's a screenshot of the task property columns on the left (with content overflow) and the timeline on the right.

gantt_layout_offset

@gearcoded
Copy link

@glencoden,
That issue occurs because of the different sizes of the layout cells. On the left part, you have the grid and the horizontal scrollbar. On the right part, you only have the timeline without the horizontal scrollbar.
Because of that, the timeline occupies more space and can be scrolled lower than the grid. You need to have the same number layout cells to have the same alignment.

You can group scrollbars so that both are displayed if at least one of them is rendered:
https://docs.dhtmlx.com/gantt/desktop__layout_config.html#visibilitygroups

Here is an example:
https://docs.dhtmlx.com/gantt/samples/07_grid/10_scrollable_grid.html

@glencoden
Copy link
Author

Thank you, this helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants