Use component.measureDimensions()

This commit is contained in:
Antonio Scandurra
2015-04-02 19:06:41 +02:00
parent 0fe1ea1af3
commit 21df0d0401

View File

@@ -1426,7 +1426,7 @@ describe "TextEditorComponent", ->
height = 4.5 * lineHeightInPixels
wrapperNode.style.height = height + 'px'
wrapperNode.style.width = 10 * charWidth + 'px'
component.measureHeightAndWidth()
component.measureDimensions()
nextAnimationFrame()
coordinates = clientCoordinatesForScreenPosition([0, 2])