रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकले > स्क्रोलबार > resizeContentVertical
Scrollbar.resizeContentVertical() मेथड
किसी वर्टिकल स्क्रोलबार की जगह को उसके पाथ और लंबाई में फिर से कैलकुलेट करें. फ़ाइल फ़ोल्डर के कॉन्टेंट में बदलाव होने पर ही इसे कॉल किया जाना चाहिए.
हस्ताक्षर:
resizeContentVertical(hostMetrics: Metrics): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
hostMetrics |
मेट्रिक |
सभी ज़रूरी डाइमेंशन की जानकारी देने वाला डेटा स्ट्रक्चर. इसे होस्ट ऑब्जेक्ट से फ़ेच किया जा सकता है. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया."],[[["`Scrollbar.resizeContentVertical()` recalculates the vertical scrollbar's position and length within the workspace."],["This method is triggered when the workspace content changes, ensuring the scrollbar remains aligned and functional."],["The method utilizes `hostMetrics`, a data structure containing workspace dimensions, to perform the recalculation."]]],["The `resizeContentVertical` method of the `Scrollbar` class recalculates a vertical scrollbar's position and length. It's invoked when the workspace's content changes. It takes `hostMetrics` as input, which is a data structure containing necessary dimension information. This method then updates the scrollbar's location and length based on the provided dimensions. The method does not return a value, indicated by a `void` return type.\n"]]