blockly > フィールド > positionTextElement_

Field.positionTextElement_() メソッド

サイズ変更後にフィールドのテキスト要素を配置します。これは LTR と RTL の両方のポジショニングを処理します。

署名:

protected positionTextElement_(xOffset: number, contentWidth: number): void;

パラメータ

パラメータ 種類 説明
xOffset 数値 テキスト要素を配置するときに使用する x オフセット。
contentWidth 数値 コンテンツの幅。

戻り値:

void