Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > CommentIcon > setBubbleSize
Sets the size of the editable bubble for this comment. Resizes the bubble if it is visible.
Signature:
setBubbleSize(size: Size): void;
Parameters
Parameter |
Type |
Description |
size |
Size |
|
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `setBubbleSize()` method within the `CommentIcon` class of Blockly's `icons` namespace is used to adjust the dimensions of the editable comment bubble."],["This method takes a `Size` object as its argument, which specifies the desired width and height of the bubble."],["If the comment bubble is currently displayed, the `setBubbleSize()` method will instantly resize it to the specified dimensions."]]],["The `setBubbleSize` method, part of the `CommentIcon` class, adjusts the dimensions of an editable comment bubble. It accepts a `Size` object as input, representing the desired new size. If the comment bubble is currently displayed, it will be resized accordingly. The method does not return any value.\n"]]