Commit 4f77e84
Fix LineNumberRuler glitch from incorrect listener order on zoom
This change ensures that zoom change events occur *after* all the
listeners have been executed in LineNumberRuler.
Previously, zoom changes triggered buffer image invalidation
prematurely, leading to multiple redundant resize events. This caused
incorrect top pixel calculations when the scrollbar was adjusted after
zoom, resulting in rendering glitches during redraws of line numbers.
By deferring the SWT.ZoomChanged event until all the listeners have
completed, we avoid early image invalidation. Now, the
redraw uses a correctly invalidated buffer image, and top pixel
calculations are accurate, eliminating rendering artifacts.
Tested by simulating zoom changes and full scroll-down scenarios—line
number ruler now renders consistently without glitches.1 parent 6a56d39 commit 4f77e84
File tree
1 file changed
+7
-5
lines changed- bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
0 commit comments