Skip to content

Commit 6b03b08

Browse files
committed
Fix LineNumberRuler for fixed zoom
This commit adds a layout call to the callback executed after a zoom change for the Canvas. If a fixed zoom is used and monitor specific scaling is active the font sizes will be correctly adapted after a zoom change, but the size of the Canvas is not, leading to cut off line numbers. Forcing a layout for this rare case of event will ensure a proper resizing. contributes to #3061
1 parent 0c268ac commit 6b03b08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ public void addMouseListener(MouseListener listener) {
624624
fBuffer.dispose();
625625
fBuffer= null;
626626
}
627+
layout(false);
627628
});
628629
});
629630

0 commit comments

Comments
 (0)