Skip to content

Commit

Permalink
fix(ui5-dynamic-side-content): retrieve correct width (SAP#9642)
Browse files Browse the repository at this point in the history
fixes: SAP#9462
  • Loading branch information
tsanislavgatev authored Aug 8, 2024
1 parent 1466076 commit 02f55f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiori/src/DynamicSideContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class DynamicSideContent extends UI5Element {
}

get containerWidth() {
return (this.parentElement as HTMLElement).clientWidth;
return (this.parentElement as HTMLElement).getBoundingClientRect().width;
}

get breakpoint() {
Expand Down

0 comments on commit 02f55f7

Please sign in to comment.