Skip to content

Commit

Permalink
fix(popover): rm setAnchorMargin & add inline-flex to trigger
Browse files Browse the repository at this point in the history
Signed-off-by: aurore.stagnol <[email protected]>
  • Loading branch information
astagnol authored and dpellier committed Jul 31, 2023
1 parent 4e98500 commit 5c4a214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ export class OdsPopoverController extends OdsComponentController<OdsPopover> {
syncReferences(): void {
if (this.component.surface && this.component.anchor) {
this.component.surface.setAnchorElement(this.component.anchor);
this.component.surface.setAnchorMargin( {
top: 0,
right: 0,
bottom: 0,
left: 0
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

}

:host([attribute]) {

::slotted([slot="popover-trigger"]) {
display: inline-flex;
}

// apply the theme template for the component
Expand Down

0 comments on commit 5c4a214

Please sign in to comment.