mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
When font size changes, correctly adjust scrollable height
This requires updating the padding of the rendered lines and then adjusting the vertical scrollbar content height before updating any of the rendered lines. This fixes (hopefully all of) the rendering issues when adjusting the font size.
This commit is contained in:
@@ -572,6 +572,8 @@ class Editor extends View
|
||||
if fontSize?
|
||||
@css('font-size', fontSize + 'px')
|
||||
@calculateDimensions()
|
||||
@updatePaddingOfRenderedLines()
|
||||
@handleScrollHeightChange()
|
||||
@updateCursorViews()
|
||||
@updateRenderedLines()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user