blockly > Scrollbar > updateDisplay_
قابلیت مشاهده نوار اسکرول را بر اساس اینکه آیا فکر میکند باید قابل مشاهده باشد و فضای کاری حاوی آن قابل مشاهده است یا نه، بهروزرسانی کنید. ما نمیتوانیم به پنهان شدن فضای کاری حاوی برای پنهان کردن ما تکیه کنیم زیرا لزوماً والد ما در DOM نیست.
امضا:
updateDisplay_(): void;
برمی گرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["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"]]