Skip to content

Commit

Permalink
Merge pull request #15878 from Kisters-BS/fix/menuSVG
Browse files Browse the repository at this point in the history
Fix aligment of popup menu for svg
  • Loading branch information
cetincakiroglu authored Jun 27, 2024
2 parents 12826fe + 26f91f0 commit 785ec5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/dom/domhandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class DomHandler {
};

const elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
const targetHeight = target.offsetHeight;
const targetHeight = target.offsetHeight ?? target.getBoundingClientRect().height;
const targetOffset = target.getBoundingClientRect();
const windowScrollTop = this.getWindowScrollTop();
const windowScrollLeft = this.getWindowScrollLeft();
Expand Down Expand Up @@ -168,8 +168,8 @@ export class DomHandler {
const elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
const elementOuterHeight = elementDimensions.height;
const elementOuterWidth = elementDimensions.width;
const targetOuterHeight = target.offsetHeight;
const targetOuterWidth = target.offsetWidth;
const targetOuterHeight = target.offsetHeight ?? target.getBoundingClientRect().height;
const targetOuterWidth = target.offsetWidth ?? target.getBoundingClientRect().width;
const targetOffset = target.getBoundingClientRect();
const windowScrollTop = this.getWindowScrollTop();
const windowScrollLeft = this.getWindowScrollLeft();
Expand Down

0 comments on commit 785ec5a

Please sign in to comment.