blockly > bubbles > Bubble > setPositionRelativeToAnchor
bubbles.Bubble.setPositionRelativeToAnchor() method
Sets the position of this bubble relative to its anchor.
Signature:
setPositionRelativeToAnchor(left: number, top: number): void;
Parameters
Parameter |
Type |
Description |
left |
number |
|
top |
number |
|
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `setPositionRelativeToAnchor()` method positions a bubble in relation to its anchor element."],["It takes two numeric arguments, `left` and `top`, to specify the bubble's offset from the anchor."],["The method does not return any value, it modifies the bubble's position directly."]]],[]]