From 15c2409ca924af22ecbe4642ffaa44e16fdf4b71 Mon Sep 17 00:00:00 2001 From: Filip Siderov Date: Thu, 23 Jul 2020 15:44:00 +0300 Subject: [PATCH 1/2] fix(ui5-input): sunc width of suggestions popover and input --- packages/main/src/features/InputSuggestions.js | 1 + packages/main/test/pages/Input.html | 5 +++++ packages/main/test/specs/Input.spec.js | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/packages/main/src/features/InputSuggestions.js b/packages/main/src/features/InputSuggestions.js index dec676bf2fb9..6395221939a3 100644 --- a/packages/main/src/features/InputSuggestions.js +++ b/packages/main/src/features/InputSuggestions.js @@ -119,6 +119,7 @@ class Suggestions { this.responsivePopover = await this._respPopover(); this._beforeOpen(); this.responsivePopover.open(this._getComponent()); + this.responsivePopover.style.maxWidth = this._getComponent().style.width; } async close(preventFocusRestore = false) { 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 + +