primereact 8.0.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/primereact.all.js CHANGED
@@ -20642,6 +20642,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
20642
20642
  var wrapperRef = React__namespace.useRef(null);
20643
20643
  var reorderIndicatorUpRef = React__namespace.useRef(null);
20644
20644
  var reorderIndicatorDownRef = React__namespace.useRef(null);
20645
+ var colReorderIconWidth = React__namespace.useRef(null);
20646
+ var colReorderIconHeight = React__namespace.useRef(null);
20645
20647
  var resizeHelperRef = React__namespace.useRef(null);
20646
20648
  var draggedColumnElement = React__namespace.useRef(null);
20647
20649
  var draggedColumn = React__namespace.useRef(null);
@@ -21246,8 +21248,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
21246
21248
  return;
21247
21249
  }
21248
21250
 
21249
- colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(reorderIndicatorUpRef.current);
21250
- colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(reorderIndicatorUpRef.current);
21251
+ colReorderIconWidth.current = DomHandler.getHiddenElementOuterWidth(reorderIndicatorUpRef.current);
21252
+ colReorderIconHeight.current = DomHandler.getHiddenElementOuterHeight(reorderIndicatorUpRef.current);
21251
21253
  draggedColumn.current = column;
21252
21254
  draggedColumnElement.current = findParentHeader(event.currentTarget);
21253
21255
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
@@ -21265,16 +21267,16 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
21265
21267
  var dropHeaderOffset = DomHandler.getOffset(dropHeader);
21266
21268
  var targetLeft = dropHeaderOffset.left - containerOffset.left;
21267
21269
  var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
21268
- reorderIndicatorUpRef.current.style.top = dropHeaderOffset.top - containerOffset.top - (colReorderIconHeight - 1) + 'px';
21270
+ reorderIndicatorUpRef.current.style.top = dropHeaderOffset.top - containerOffset.top - (colReorderIconHeight.current - 1) + 'px';
21269
21271
  reorderIndicatorDownRef.current.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
21270
21272
 
21271
21273
  if (event.pageX > columnCenter) {
21272
- reorderIndicatorUpRef.current.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(colReorderIconWidth / 2) + 'px';
21273
- reorderIndicatorDownRef.current.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(colReorderIconWidth / 2) + 'px';
21274
+ reorderIndicatorUpRef.current.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(colReorderIconWidth.current / 2) + 'px';
21275
+ reorderIndicatorDownRef.current.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(colReorderIconWidth.current / 2) + 'px';
21274
21276
  dropPosition.current = 1;
21275
21277
  } else {
21276
- reorderIndicatorUpRef.current.style.left = targetLeft - Math.ceil(colReorderIconWidth / 2) + 'px';
21277
- reorderIndicatorDownRef.current.style.left = targetLeft - Math.ceil(colReorderIconWidth / 2) + 'px';
21278
+ reorderIndicatorUpRef.current.style.left = targetLeft - Math.ceil(colReorderIconWidth.current / 2) + 'px';
21279
+ reorderIndicatorDownRef.current.style.left = targetLeft - Math.ceil(colReorderIconWidth.current / 2) + 'px';
21278
21280
  dropPosition.current = -1;
21279
21281
  }
21280
21282