Commit ec0c14e
committed
Fix scrollbar rendering artifact in pre-Mojave renderer
Fix scrollbars not rendering properly when using delayed calls to
placeScrollBars. That has issues since pre-Mojave renderer blocks the
window from changing size by using `[NSAnimationContext beginGrouping]`.
That causes the bug as placeScrollbars would be using state from
previous sizes.
We could fix this by waiting for the animation to end before called
finishPlaceScrollbars but it's more complicated and leads to more state
tracking. Instead, just call placeScrollbars when we resize immediately
(just like before) instead of deferring. We still defer placing
scrollbars for things like creating/deleting scrollbars as we could be
doing that a lot of times per frame (e.g. calling `:only` with a lot of
splits).
Fix #8481 parent caed4ee commit ec0c14e
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
932 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
933 | 945 | | |
934 | 946 | | |
935 | 947 | | |
| |||
0 commit comments