diff --git a/bundles/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/stickyscroll/StickyScrollingControl.java b/bundles/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/stickyscroll/StickyScrollingControl.java index 0a5234b3ae7..85ce9e3542b 100644 --- a/bundles/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/stickyscroll/StickyScrollingControl.java +++ b/bundles/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/stickyscroll/StickyScrollingControl.java @@ -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) { @@ -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; }