From cb4c27757a0914b31abad050bac6ba71ea6de4fa Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 4 Dec 2015 15:35:53 +0100 Subject: [PATCH] :memo: TextEditorElement::invalidateBlockDecorationDimensions --- src/text-editor-element.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/text-editor-element.coffee b/src/text-editor-element.coffee index 6722f51df..380417163 100644 --- a/src/text-editor-element.coffee +++ b/src/text-editor-element.coffee @@ -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...)