Skip to main content

Home > blockly > Events > CommentResize

Events.CommentResize class

Notifies listeners that a workspace comment has resized.

Signature:

export declare class CommentResize extends CommentBase 

Extends: CommentBase

Constructors

ConstructorModifiersDescription
(constructor)(opt_comment)Constructs a new instance of the CommentResize class

Properties

PropertyModifiersTypeDescription
newSize?Size(Optional) The size of the comment after the resize.
oldSize?Size(Optional) The size of the comment before the resize.
typeEventType

Methods

MethodModifiersDescription
isNull()Does this event record any change of state?
recordCurrentSizeAsNewSize()Record the comment's new size. Called after the resize. Can only be called once.
run(forward)Run a resize event.
toJson()Encode the event as JSON.