Skip to content

Commit 6f854a1

Browse files
authored
fix: select drop should equal same width as select button (#259)
1 parent 1f774d0 commit 6f854a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/multiple-select-vanilla/src/MultipleSelectInstance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,10 +764,10 @@ export class MultipleSelectInstance {
764764
if (window.getComputedStyle) {
765765
computedWidth = window.getComputedStyle(this.elm).width;
766766
if (computedWidth === 'auto') {
767-
computedWidth = getElementSize(this.dropElm, 'outer', 'width') + 15;
767+
computedWidth = getElementSize(this.dropElm, 'outer', 'width') + 20;
768768
}
769769
} else {
770-
computedWidth = getElementSize(this.elm, 'outer', 'width') + 15;
770+
computedWidth = getElementSize(this.elm, 'outer', 'width') + 20;
771771
}
772772

773773
this.parentElm.style.width = `${this.options.width || computedWidth}px`;

0 commit comments

Comments
 (0)