diff --git a/packages/main/src/Input.js b/packages/main/src/Input.js index 43869210662e..6e82a53382ef 100644 --- a/packages/main/src/Input.js +++ b/packages/main/src/Input.js @@ -1041,6 +1041,9 @@ class Input extends UI5Element { "width": `${this._listWidth}px`, "padding": "0.5625rem 1rem", }, + suggestionsPopover: { + "max-width": `${this._inputWidth}px`, + }, }; } diff --git a/packages/main/src/InputPopover.hbs b/packages/main/src/InputPopover.hbs index 4f69cb11e840..fc4224550c72 100644 --- a/packages/main/src/InputPopover.hbs +++ b/packages/main/src/InputPopover.hbs @@ -4,6 +4,7 @@ _disable-initial-focus placement-type="Bottom" horizontal-align="Left" + style="{{styles.suggestionsPopover}}" @ui5-after-open="{{_afterOpenPopover}}" @ui5-after-close="{{_afterClosePopover}}" @scroll="{{_scroll}}" diff --git a/packages/main/test/pages/Input.html b/packages/main/test/pages/Input.html index f4c25a244900..382936b8a9d5 100644 --- a/packages/main/test/pages/Input.html +++ b/packages/main/test/pages/Input.html @@ -321,6 +321,11 @@

Input suggestions with highlighing and XSS test

+

Test width of suggestions popover

+ + Argentinaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + +