Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Kaydırma çubuğu > updateDisplay_
Kaydırma çubuğunun görünürlüğünü, görünür olması gerekip gerekmediğine ve bulunduğu çalışma alanının görünür olup olmadığına göre güncelleyin. DOM'deki üst çalışma alanımız olmadığından, kapsayıcı çalışma alanının bizi gizlemesine izin veremeyiz.
İmza:
updateDisplay_(): 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-09-12 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-09-12 UTC."],[[["The `updateDisplay_` method controls the scrollbar's visibility based on its own state and the visibility of its workspace."],["It is necessary because the workspace's visibility alone may not hide the scrollbar due to potential DOM structure variations."],["This method ensures the scrollbar remains appropriately visible or hidden, independent of workspace DOM relationships."]]],["The `updateDisplay_` method in the Scrollbar class controls the scrollbar's visibility. It determines if the scrollbar should be shown by assessing its own state and the visibility of the containing workspace. The method's logic doesn't rely solely on the workspace's parent-child DOM relationship for visibility decisions. It takes no arguments and returns nothing (void). The method's core function is to synchronize the scrollbar's display state with the workspace's current state.\n"]]