Et2Select: Fix single line overflow to count correctly for any egw content size preference

This commit is contained in:
nathan 2023-11-24 09:42:21 -07:00
parent 487939dbfd
commit 97574f0118

View File

@ -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();
}