रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
blockly > Scrollbar > updateDisplay_
स्क्रोलबार के दिखने की सेटिंग को इस आधार पर अपडेट करें कि उसे दिखना चाहिए या नहीं और इसमें मौजूद फ़ाइल फ़ोल्डर दिख रहा है या नहीं. हमें छिपाने के लिए, हम उस फ़ाइल फ़ोल्डर पर भरोसा नहीं कर सकते जिसमें वह फ़ाइल फ़ोल्डर छिपा है. ऐसा इसलिए, क्योंकि ज़रूरी नहीं है कि डीओएम में वह हमारा पैरंट फ़ोल्डर हो.
हस्ताक्षर:
updateDisplay_(): void;
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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"]]