We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a6c350 commit 5952ddaCopy full SHA for 5952dda
packages/floating-vue/src/components/Popper.ts
@@ -643,10 +643,10 @@ export default () => defineComponent({
643
options.middleware.push(size({
644
boundary: this.boundary,
645
padding: this.overflowPadding,
646
- apply: ({ width, height }) => {
+ apply: ({ availableWidth, availableHeight }) => {
647
// Apply and re-compute
648
- this.$_innerNode.style.maxWidth = width != null ? `${width}px` : null
649
- this.$_innerNode.style.maxHeight = height != null ? `${height}px` : null
+ this.$_innerNode.style.maxWidth = availableWidth != null ? `${availableWidth}px` : null
+ this.$_innerNode.style.maxHeight = availableHeight != null ? `${availableHeight}px` : null
650
},
651
}))
652
}
0 commit comments