From 97574f0118dd3666dc9bf1f55678178b8f2064eb Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 24 Nov 2023 09:42:21 -0700 Subject: [PATCH] Et2Select: Fix single line overflow to count correctly for any egw content size preference --- api/js/etemplate/Et2Select/Et2Select.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index e5ba06e1e0..75702efc56 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -122,7 +122,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) :host([rows]) ::part(tags) { overflow-y: auto; - max-height: calc(var(--rows, 5) * 2.3em); + max-height: calc(var(--rows, 5) * (var(--sl-input-height-medium) * 0.8)) } :host([rows='1']) ::part(tags) { @@ -769,7 +769,6 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) // Popup still here. Remove it popup.remove(); } - this.removeEventListener("mouseleave", this._handleMouseLeave); this.select.requestUpdate(); }