diff --git a/src/module/Filler.js b/src/module/Filler.js index 996d191..531a46a 100644 --- a/src/module/Filler.js +++ b/src/module/Filler.js @@ -126,9 +126,8 @@ export default class Filler extends Base { }; this.item.map((el) => { - const rect = el.getBoundingClientRect(); const style = window.getComputedStyle(el); - const width = rect.width + parseInt(style.marginLeft) + parseInt(style.marginRight); + const width = el.offsetWidth + parseInt(style.marginLeft) + parseInt(style.marginRight); data.itemWidth.push(width); data.itemsWidth += width; });