Skip to content

Commit

Permalink
Fix line number layout in sticky scrolling control
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Hermann authored and BeckerWdf committed Jul 31, 2024
1 parent 351e9a3 commit a547aa4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ private void layoutLineNumbers() {
((GridData) stickyLineNumber.getLayoutData()).widthHint= lineNumberBounds.width;
stickyLineNumber.setRightMargin(verticalRuler.getWidth() - lineNumberBounds.x - lineNumberBounds.width);
}
stickyLinesCanvas.layout();
}

private LineNumberColumn getLineNumberColumn(IVerticalRuler ruler) {
Expand Down Expand Up @@ -507,7 +508,7 @@ public void keyReleased(KeyEvent e) {

@Override
public void caretMoved(CaretEvent event) {
int offsetEndPosition = sourceViewer.getTextWidget().getText().length();
int offsetEndPosition= sourceViewer.getTextWidget().getText().length();
if (event.caretOffset == 0 || event.caretOffset == offsetEndPosition) {
return;
}
Expand Down

0 comments on commit a547aa4

Please sign in to comment.