mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
📝 TextEditorElement::invalidateBlockDecorationDimensions
This commit is contained in:
@@ -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...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user