mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Fixed #4870 - Menu components: width changed as min-width
This commit is contained in:
parent
0fca13d789
commit
8c76a94df0
60 changed files with 356 additions and 344 deletions
|
@ -272,7 +272,11 @@ export default {
|
|||
},
|
||||
alignOverlay() {
|
||||
DomHandler.absolutePosition(this.container, this.target);
|
||||
this.container.style.minWidth = DomHandler.getOuterWidth(this.target) + 'px';
|
||||
const targetWidth = DomHandler.getOuterWidth(this.target);
|
||||
|
||||
if (targetWidth > DomHandler.getOuterWidth(this.container)) {
|
||||
this.container.style.minWidth = DomHandler.getOuterWidth(this.target) + 'px';
|
||||
}
|
||||
},
|
||||
bindOutsideClickListener() {
|
||||
if (!this.outsideClickListener) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue