SearchMixin: Make sure dropdown doesn't cover bottom border

This commit is contained in:
nathan 2022-11-09 09:30:53 -07:00
parent 98dc356d75
commit 32bd2a1084

View File

@ -633,7 +633,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
{
this.dropdown?.setAttribute("distance",
!this._activeControls || this._activeControls?.classList.contains("novalue") ?
"" :
parseInt(getComputedStyle(this.control).getPropertyValue("border-width")) :
// Make room for search below
parseInt(getComputedStyle(this._activeControls).getPropertyValue("--sl-input-height-medium"))
);