แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ศูนย์ RenderInfo > adjustXPosition_
เมธอด zelos.RenderInfo.adjustXPosition_()
ปรับตำแหน่ง x ของช่องเพื่อชนช่องทั้งหมดที่ไม่ใช่ป้ายกำกับในแถวแรกหลังตำแหน่งรอยบาก ต้องเรียกใช้ก่อนเรียกใช้ computeBounds
ลายเซ็น:
protected adjustXPosition_(): void;
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 UTC
[null,null,["อัปเดตล่าสุด 2024-08-22 UTC"],[[["The `adjustXPosition_` method shifts non-label fields in the first row of a block to the right of the block's notch."],["This adjustment is crucial for proper visual layout and must happen before the block's boundaries are calculated using `computeBounds`."],["The method aims to prevent overlapping and ensures fields are displayed clearly within the block's structure."],["This internal function, designated as protected, is primarily used within the rendering process and might not be directly called by users."]]],[]]