fix #983: When scrolling down, consider the height of the horizontal … - #1393
fix #983: When scrolling down, consider the height of the horizontal …#1393Daniel-Tr wants to merge 1 commit into
Conversation
…scrollbar to calculate whether the bar should be visible or not. This effectively enlarges the view port by one (or more) rows, so that we can calculate the need for the scrollbar as if it was not visible. Downside of this approach: If the first invisible row would require the scrollbar to be visible, but no other visible row would, we would still show the scrollbar.
|
@TetzkatLipHoka What do you think about this approach? I think it's a little less intrusive and hides an unneccessary horizontal scrollbar in most of the situations. |
|
Nice approach — I like that it keeps the range semantics untouched and just bridges exactly the flip-flop window (the scroll bar height). I ran the three tests from #1391 against your branch: all green for the flat-list case from the issue. There is one measurable hole though: Verified fix for that: walk With that change I'd be happy to close #1391 in favor of this PR — and glad to contribute its DUnitX tests here, they are approach-neutral (symptom + end-scroll + recompute-on-widen). 🤖 Generated with Claude Code |
…scrollbar to calculate whether the bar should be visible or not. This effectively enlarges the view port by one (or more) rows, so that we can calculate the need for the scrollbar as if it was not visible.
Downside of this approach: If the first invisible row would require the scrollbar to be visible, but no other visible row would, we would still show the scrollbar.
This is an alternative proposed solution for #983 and this pull request: #1391