Skip to content

Commit

Permalink
fix: autoMaxSize - reset size to allow bestFit
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 9, 2022
1 parent 36eff8c commit 40dae98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/floating-vue/src/components/Popper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ export default () => ({

// Auto max size for the popper inner
if (this.autoMaxSize) {
// Reset size to bestFit strategy can apply
this.$_innerNode.style.maxWidth = null
this.$_innerNode.style.maxHeight = null

options.middleware.push(size({
boundary: this.boundary,
padding: this.overflowPadding,
Expand Down

0 comments on commit 40dae98

Please sign in to comment.