question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not scrolling enough?

See original GitHub issue

Hi. Not sure it’s a bug report or a question. I have a SPA built with Vue2 with some fixed headers / banners on top of the page (which has a body with height:100%).

I split the remaining space of the page into columns, inside which I have bootstrap3 tables (1 table per column, and the table itself has only 1 column). I want to be able to scroll one table with arrows.

vue-scrollto basically works, but doesn’t scroll enough. I can navigate from one table cell to the next, but at some point the active cell is out of the screen. As if the scroll wasn’t enough. I played a lot with offset but it seems to have no effect whatsoever in my case.

You can try yourself in this page: https://www.arcsecond.io/objects/HD 5981 Wait for the Publications column to fill completely, and click on one cell, then navigate with up/down arrows.

Thanks in advance for checking!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
onekiloparseccommented, Nov 5, 2017

Thanks for your reply. I remain cautious about this tbody having a fixed height too. But I tested a lot around, and this was appeared to be necessary for my case. Maybe it’s only a side effect of my personal setup.

1reaction
onekiloparseccommented, Nov 4, 2017

Ok, I made it working. As far as I can tell, here are the conditions I had to meet (a lot obvious, but the right combination took time):

  • tbody must have display: block;
  • table has overflow-y: scroll; and overflow-x: scroll;
  • scrollTo options container must point to the element having the properties overfllow-x|y (if they are on tbody, then container must point to tbody.
  • tbody must have some kind of fixed height. I use height: calc(100vh);. If it doesn’t have a fixed height, nothing works.
  • I noticed the offset option seem to be dependant of the table position. I mean, my table doesn’t start at the top of the page (say, 100px below). Offset is then effective only if its value > 100px.
  • I could keep my flex properties. This wasn’t related after all.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't scroll enough - Stack Overflow
The scrollbar is fully down, and even with wheel it's not possible to scroll. Why is that? How to solve it? Thank you...
Read more >
How to Fix Scrolling Not Working Issue in Chrome
If your mouse scrolling stops working in the Google Chrome browser, you can use the following tips to fix the scrolling issue in...
Read more >
Why A Website Won't Scroll & How to Fix it
First, try using two fingers to scroll. If you are using one finger, the whole page will scroll down instead of just the...
Read more >
How to prevent overflow scrolling in CSS - LogRocket Blog
The scroll value of the overflow property adds horizontal and vertical scroll bars so you can adjust or scroll the content if it's...
Read more >
Overflowing content - Learn web development | MDN
Using overflow: scroll , browsers with visible scrollbars will always display them—even if there is not enough content to overflow.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found