blockly > Field > positionTextElement_
Field.positionTextElement_() 方法
在大小改變後放置欄位文字元素。這會處理 LTR 和 RTL 定位。
Signature:
protected positionTextElement_(xOffset: number, contentWidth: number): void;
參數
參數 | 類型 | 說明 |
---|---|---|
xOffset | 號碼 | 定位文字元素時使用的 x 偏移值。 |
contentWidth | 號碼 | 內容寬度。 |
傳回:
void