blockly > WidgetDiv > repositionForWindowResize
Sahibi tarafından belirtildiği takdirde widget div'i yeniden konumlandırın. Sahip bir alan değilse vazgeçmeniz ve gizlemeniz yeterlidir.
İmza:
export declare function repositionForWindowResize(): void;
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-22 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-22 UTC."],[[["The `repositionForWindowResize()` function repositions the Blockly widget's div element when the browser window is resized."],["This repositioning is triggered based on the widget's owner, and if the owner is not a field, the widget is hidden."],["The function ensures the widget remains correctly positioned within the visible area after window size adjustments."]]],[]]