| Summary: | Adding padding on a horizontal scroller prevents last item from being fully viewable | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Charlie Croom <charlie.croom> | ||||||||||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||||
| Severity: | Normal | CC: | bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan | ||||||||||||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||||||||||||||
| Version: | Safari Technology Preview | ||||||||||||||||||
| Hardware: | All | ||||||||||||||||||
| OS: | All | ||||||||||||||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=95032 https://bugs.webkit.org/show_bug.cgi?id=201453 https://bugs.webkit.org/show_bug.cgi?id=241461 |
||||||||||||||||||
| Bug Depends on: | 241689 | ||||||||||||||||||
| Bug Blocks: | |||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Charlie Croom
2022-02-04 09:53:32 PST
This does indeed look like a rather serious bug. Created attachment 453268 [details]
Test case
This works for vertical scrollers, but not horizontal scrollers. For vertical scrollers, the padding is taken into account by the `oldClientAfterEdge` value passed in to `computeOverflow()`, which comes from clientLogicalBottom(). But there is no equivalent logic for horizontal padding. This is about the computation of layout overflow. Created attachment 460292 [details]
Patch
Created attachment 460305 [details]
Patch
Created attachment 460330 [details]
Patch
Created attachment 460392 [details]
Test reduction
Created attachment 460424 [details]
Patch
Created attachment 460426 [details]
Patch
Committed r295765 (251770@main): <https://commits.webkit.org/251770@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 460426 [details]. |