File tree 4 files changed +12
-22
lines changed
4 files changed +12
-22
lines changed Original file line number Diff line number Diff line change 24
24
"floating-vue" : " workspace:*"
25
25
},
26
26
"devDependencies" : {
27
- "@floating-ui/dom" : " ^1.3.0 " ,
27
+ "@floating-ui/dom" : " ^0.1.10 " ,
28
28
"@iconify-json/lucide" : " ^1.1.101" ,
29
29
"@vue/eslint-config-standard" : " ^8.0.1" ,
30
30
"@vue/shared" : " ^3.3.4" ,
Original file line number Diff line number Diff line change 27
27
" dist"
28
28
],
29
29
"dependencies" : {
30
- "@floating-ui/dom" : " ^1.3.0 " ,
30
+ "@floating-ui/dom" : " ^0.1.10 " ,
31
31
"vue-resize" : " ^2.0.0-alpha.1"
32
32
},
33
33
"peerDependencies" : {
Original file line number Diff line number Diff line change 6
6
shift ,
7
7
flip ,
8
8
arrow ,
9
- getOverflowAncestors ,
9
+ getScrollParents ,
10
10
size ,
11
11
} from '@floating-ui/dom'
12
12
import { supportsPassive , isIOS } from '../util/env'
@@ -643,10 +643,10 @@ export default () => defineComponent({
643
643
options . middleware . push ( size ( {
644
644
boundary : this . boundary ,
645
645
padding : this . overflowPadding ,
646
- apply : ( { availableWidth , availableHeight } ) => {
646
+ apply : ( { width , height } ) => {
647
647
// Apply and re-compute
648
- this . $_innerNode . style . maxWidth = availableWidth != null ? `${ availableWidth } px` : null
649
- this . $_innerNode . style . maxHeight = availableHeight != null ? `${ availableHeight } px` : null
648
+ this . $_innerNode . style . maxWidth = width != null ? `${ width } px` : null
649
+ this . $_innerNode . style . maxHeight = height != null ? `${ height } px` : null
650
650
} ,
651
651
} ) )
652
652
}
@@ -727,8 +727,8 @@ export default () => defineComponent({
727
727
// Scroll
728
728
if ( ! this . positioningDisabled ) {
729
729
this . $_registerEventListeners ( [
730
- ...getOverflowAncestors ( this . $_referenceNode ) ,
731
- ...getOverflowAncestors ( this . $_popperNode ) ,
730
+ ...getScrollParents ( this . $_referenceNode ) ,
731
+ ...getScrollParents ( this . $_popperNode ) ,
732
732
] , 'scroll' , ( ) => {
733
733
this . $_computePosition ( )
734
734
} )
You can’t perform that action at this time.
0 commit comments