blockly > 필드 > positionTextElement_

Field.positionTextElement_() 메서드

크기가 변경된 후 필드의 텍스트 요소를 배치합니다. 이는 LTR과 RTL 위치 지정을 모두 처리합니다.

Signature:

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

매개변수

매개변수 유형 설명
xOffset 숫자 텍스트 요소를 배치할 때 사용할 x 오프셋입니다.
contentWidth 숫자 콘텐츠 너비입니다.

반환:

void