From 2f5db86f236ba85deab6dc021292ce8e16bb50dd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 9 Dec 2021 16:31:25 +0300 Subject: [PATCH] Fix Bug 54459 --- apps/common/main/lib/component/DataView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index 6740c46d5..86a3d0276 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -808,14 +808,14 @@ define([ }; var el = $(this.dataViewItems[0].el), - itemW = el.outerWidth() + parseInt(el.css('margin-left')) + parseInt(el.css('margin-right')), + itemW = el.outerWidth() + parseFloat(el.css('margin-left')) + parseFloat(el.css('margin-right')), offsetLeft = this.$el.offset().left, offsetTop = el.offset().top, prevtop = -1, topIdx = 0, leftIdx = 0; for (var i=0; iprevtop) { prevtop = top; this._layoutParams.itemsIndexes.push([]); @@ -1266,7 +1266,7 @@ define([ }; var el = this.dataViewItems[0].el, - itemW = el.outerWidth() + parseInt(el.css('margin-left')) + parseInt(el.css('margin-right')), + itemW = el.outerWidth() + parseFloat(el.css('margin-left')) + parseFloat(el.css('margin-right')), offsetLeft = this.$el.offset().left, offsetTop = el.offset().top, prevtop = -1, topIdx = 0, leftIdx = 0;