mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Clear the pool when font or lineHeight change
This commit is contained in:
@@ -653,6 +653,7 @@ class TextEditorComponent
|
||||
{@fontSize, @fontFamily, @lineHeight} = getComputedStyle(@getTopmostDOMNode())
|
||||
|
||||
if @fontSize isnt oldFontSize or @fontFamily isnt oldFontFamily or @lineHeight isnt oldLineHeight
|
||||
@domElementPool.clear()
|
||||
@measureLineHeightAndDefaultCharWidth()
|
||||
|
||||
if (@fontSize isnt oldFontSize or @fontFamily isnt oldFontFamily) and @performedInitialMeasurement
|
||||
|
||||
Reference in New Issue
Block a user