Skip to content

Commit 5952dda

Browse files
committed
chore: update for aou changes
1 parent 6a6c350 commit 5952dda

File tree

1 file changed

+3
-3
lines changed
  • packages/floating-vue/src/components

1 file changed

+3
-3
lines changed

packages/floating-vue/src/components/Popper.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,10 @@ export default () => defineComponent({
643643
options.middleware.push(size({
644644
boundary: this.boundary,
645645
padding: this.overflowPadding,
646-
apply: ({ width, height }) => {
646+
apply: ({ availableWidth, availableHeight }) => {
647647
// Apply and re-compute
648-
this.$_innerNode.style.maxWidth = width != null ? `${width}px` : null
649-
this.$_innerNode.style.maxHeight = height != null ? `${height}px` : null
648+
this.$_innerNode.style.maxWidth = availableWidth != null ? `${availableWidth}px` : null
649+
this.$_innerNode.style.maxHeight = availableHeight != null ? `${availableHeight}px` : null
650650
},
651651
}))
652652
}

0 commit comments

Comments
 (0)