Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/vue-select/src/mixins/ drwxr-xr-x |
Viewing file: Select action/file-type: export default { props: { autoscroll: { type: Boolean, default: true, }, }, watch: { typeAheadPointer() { if (this.autoscroll) { this.maybeAdjustScroll() } }, open(open) { if (this.autoscroll && open) { this.$nextTick(() => this.maybeAdjustScroll()) } }, }, methods: { /** * Adjust the scroll position of the dropdown list * if the current pointer is outside of the * overflow bounds. * @returns {*} */ maybeAdjustScroll() { const optionEl = this.$refs.dropdownMenu?.children[this.typeAheadPointer] || false if (optionEl) { const bounds = this.getDropdownViewport() const { top, bottom, height } = optionEl.getBoundingClientRect() if (top < bounds.top) { return (this.$refs.dropdownMenu.scrollTop = optionEl.offsetTop) } else if (bottom > bounds.bottom) { return (this.$refs.dropdownMenu.scrollTop = optionEl.offsetTop - (bounds.height - height)) } } }, /** * The currently viewable portion of the dropdownMenu. * @returns {{top: (string|*|number), bottom: *}} */ getDropdownViewport() { return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : { height: 0, top: 0, bottom: 0, } }, }, } |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]-- |