We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aac3c5 commit d176800Copy full SHA for d176800
packages/main/src/AvatarGroup.js
@@ -382,7 +382,7 @@ class AvatarGroup extends UI5Element {
382
item = button;
383
}
384
385
- return this.effectiveDir === "rtl" ? this._getWidthToItem(item) : item.offsetLeft;
+ return this.effectiveDir === "rtl" ? this._getWidthToItem(item) : item.offsetLeft - this.offsetLeft;
386
387
388
return button.offsetWidth;
@@ -526,7 +526,7 @@ class AvatarGroup extends UI5Element {
526
527
528
// in LTR the width is equal to item.offsetLeft
529
- return item.offsetLeft;
+ return item.offsetLeft - this.offsetLeft;
530
531
532
/**
0 commit comments