Et2Email: Fix [readonly][rows=1] popup position & z-index issue

This commit is contained in:
nathan 2024-01-11 17:06:34 -07:00
parent f5baa7ee60
commit 684d509d03

View File

@ -1148,7 +1148,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
} }
// Offset distance to open _over_ the rest // Offset distance to open _over_ the rest
let distance = (-1 * parseInt(getComputedStyle(this).height)); let distance = (-1 * parseInt(getComputedStyle(this).height)) + 1;
return html` return html`
<sl-popup <sl-popup
active active
@ -1315,8 +1315,8 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
> >
<slot name="label">${this.label}</slot> <slot name="label">${this.label}</slot>
</label> </label>
${this.readonlyHoverTemplate()}
<div part="form-control-input" class="form-control-input"> <div part="form-control-input" class="form-control-input">
${this.readonlyHoverTemplate()}
<sl-popup <sl-popup
class=${classMap({ class=${classMap({
email: true, email: true,