diff --git a/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts b/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts index 424cefa..1a1834a 100644 --- a/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts +++ b/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts @@ -165,7 +165,7 @@ export class BadgeList extends ResizeMixin(ThemableMixin(LitElement)) { // Reset overflow badge for overflow calculations and get width overflow.removeAttribute("hidden"); let overflowStyle = getComputedStyle(overflow); - let overflowWidth = overflow.offsetWidth + parseInt(overflowStyle.marginInline); + let overflowWidth = overflow.offsetWidth + parseInt(overflowStyle.marginInlineStart) + parseInt(overflowStyle.marginInlineEnd); // Reset badges for calculations badges.forEach(badge => {