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

Set scrollbars to window #33

Open
MaestroJurko opened this issue Sep 10, 2015 · 3 comments
Open

Set scrollbars to window #33

MaestroJurko opened this issue Sep 10, 2015 · 3 comments

Comments

@MaestroJurko
Copy link

Is it possible to set scrollbars to window instead of table? I have a table inside the main content and I scroll the table with window scrollbars (it took some time to develop that).

Any possibility?

@kayhadrin
Copy link
Contributor

Could you clarify or give the URL of a live demo of what you have in mind?

AFAIK, maybe what you'd like can be achieve by adding this css rule:

.ngc.scroll-wrapper.vertical {
  visibility: hidden;
}

@kayhadrin
Copy link
Contributor

Oops, I didn't notice the change of scrollbar done in 0.4.
So my suggestion is only valid for 0.3.x.

@gdepourtales
Copy link
Owner

@mato75 , I created a small gist how you can start getting what you want : https://gist.github.com/gdepourtales/a912fbbf681382de15e4

I've put a big div that should be bigger than the window. When you scroll either horizontally or vertically the content of the table is updated. The table holds a fixed position on the top left.

Obviously the size of the big div should be relative to the size of the window and be calculated to fit the size of your table content but how to bind window scroll to table scroll is there.

Is it something like this you're looking for ?

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

3 participants