Stay organized with collections
Save and categorize content based on your preferences.
blockly > Field > positionBorderRect_
Field.positionBorderRect_() method
Position a field's border rect after a size change.
Signature:
protected positionBorderRect_(): void;
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."],[[["`positionBorderRect_()` is a protected method in the `Field` class used to reposition the border of a field after its size is changed."],["It's called internally within the Blockly library and helps ensure that the visual border of fields aligns correctly with their content after size adjustments."],["This method doesn't return any value (void) and is primarily responsible for visual layout within Blockly fields."]]],["The `positionBorderRect_()` method, part of the `Field` class, is used to reposition a field's border rectangle. This action is performed specifically after a change in the field's size. The method is protected and does not return any value (void). Its primary function is to adjust the border's position to accommodate size alterations.\n"]]