From 6795a5344c639fc17e41c163024da17deed45cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Tue, 12 Mar 2024 13:57:36 +0100 Subject: [PATCH] IBX-7517: [Dashboard] Quick actions: selected tags aren't fully displayed --- src/bundle/Resources/public/js/scripts/core/dropdown.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bundle/Resources/public/js/scripts/core/dropdown.js b/src/bundle/Resources/public/js/scripts/core/dropdown.js index 6585c4cfe4..3a2559c84b 100644 --- a/src/bundle/Resources/public/js/scripts/core/dropdown.js +++ b/src/bundle/Resources/public/js/scripts/core/dropdown.js @@ -65,6 +65,9 @@ this.container.classList.toggle('is-invalid', isInvalid); }); + this.resizeObserver = new ResizeObserver(() => { + this.fitItems(); + }); this.currentSelectedValue = this.sourceInput.value; this.createSelectedItem = this.createSelectedItem.bind(this); @@ -565,6 +568,7 @@ attributes: true, attributeFilter: ['class'], }); + this.resizeObserver.observe(this.container); const selectedItems = this.container.querySelectorAll( '.ibexa-dropdown__selected-item:not(.ibexa-dropdown__selected-overflow-number):not(.ibexa-dropdown__selected-placeholder)',