📝 TextEditorElement::invalidateBlockDecorationDimensions

This commit is contained in:
Antonio Scandurra
2015-12-04 15:35:53 +01:00
parent b6b2958e67
commit cb4c27757a

View File

@@ -347,6 +347,12 @@ class TextEditorElement extends HTMLElement
getHeight: ->
@offsetHeight
# Experimental: Invalidate the passed block {Decoration} dimensions, forcing
# them to be recalculated and the surrounding content to be adjusted on the
# next animation frame.
#
# * {blockDecoration} A {Decoration} representing the block decoration you
# want to update the dimensions of.
invalidateBlockDecorationDimensions: ->
@component.invalidateBlockDecorationDimensions(arguments...)