Skip to content

Commit 40dae98

Browse files
committed
fix: autoMaxSize - reset size to allow bestFit
1 parent 36eff8c commit 40dae98

File tree

1 file changed

+4
-0
lines changed
  • packages/floating-vue/src/components

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ export default () => ({
520520

521521
// Auto max size for the popper inner
522522
if (this.autoMaxSize) {
523+
// Reset size to bestFit strategy can apply
524+
this.$_innerNode.style.maxWidth = null
525+
this.$_innerNode.style.maxHeight = null
526+
523527
options.middleware.push(size({
524528
boundary: this.boundary,
525529
padding: this.overflowPadding,

0 commit comments

Comments
 (0)