रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > स्क्रोलबार > setOrigin
स्क्रोलबार के फ़ाइल फ़ोल्डर का ऑरिजिन, इंजेक्शन div के ऑरिजिन के हिसाब से पिक्सल में रिकॉर्ड करें. ऐसा तब होता है, जब स्क्रोलबार का इस्तेमाल किसी ऐसे ऑब्जेक्ट में किया जाता है जिसका ऑरिजिन, मुख्य फ़ाइल फ़ोल्डर से अलग होता है. जैसे, फ़्लायआउट में.
हस्ताक्षर:
setOrigin(x: number, y: number): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
x |
संख्या |
सीएसएस पिक्सल में, स्क्रोलबार के ऑरिजिन का x कोऑर्डिनेट. |
y |
संख्या |
सीएसएस पिक्सल में, स्क्रोलबार के ऑरिजिन का y कॉर्डिनेट. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-11 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-11 (UTC) को अपडेट किया गया."],[[["The `Scrollbar.setOrigin()` method is used to set the origin of a scrollbar relative to its containing workspace, particularly useful when the scrollbar is within elements like flyouts that have different origins."],["It takes two parameters, `x` and `y`, representing the horizontal and vertical coordinates of the scrollbar's origin in CSS pixels, respectively."],["This method records the workspace origin for the scrollbar, ensuring proper positioning and functionality even when used in elements outside the main workspace area."]]],[]]