研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >字段 >positionBorderRect_
Field.positionBorderRect_() 方法
更改大小后定位字段的边框矩形。
Signature:
protected positionBorderRect_(): void;
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["`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"]]