HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tsian2

no profile record

comments

tsian2
·3년 전·discuss
I did make a scrollbar that appeared to stick to the bottom of the table. I used a div with the same width as the table, used a scroll event listener to update the tables actual scroll position and only had it appear when the user was currently over a table and that table overlapped the bottom of the viewport. It worked well in the sense that people would use it without thinking about it.
tsian2
·3년 전·discuss
I think this is the reason why the site is found so useful now. The meta board is a good read for anyone who wants to understand more or find out how to resolve their issues with the site.
tsian2
·4년 전·discuss
You can work around this issue by creating a bit of separation between the height of your items and the heights used in CSS. At these heights the scroll thumb is already reduced to it's minimum height, so as long as you make sure that scrolling jumps to that right point in the data you can "borrow" from the CSS height to stop it going over the maximum.
tsian2
·4년 전·discuss
I find it much quicker to write and neater to read than vanilla JS. I optimise afterwards and might consider swapping it out but it's usually low down the list of performance issues. Although it can be a bigger issue if you don't know how select things and store those selections efficiently with it.