Clear the pool when font or lineHeight change

This commit is contained in:
Antonio Scandurra 2015-09-15 10:59:32 +02:00
parent f86c9b2331
commit daf4316974

View File

@ -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