igniteui-angular 16.1.14 → 16.1.15

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.
@@ -12650,6 +12650,24 @@ class IgxDragDirective {
12650
12650
  if (!this._clicked) {
12651
12651
  return;
12652
12652
  }
12653
+ // When the base element is moved to previous index, angular reattaches the ghost template as a sibling by default.
12654
+ // This is the defaut place for the EmbededViewRef when recreated.
12655
+ // That's why we need to move it to the proper place and set pointer capture again.
12656
+ if (this._pointerDownId && this.ghostElement && this._dynamicGhostRef && !this._dynamicGhostRef.destroyed) {
12657
+ let ghostReattached = false;
12658
+ if (this.ghostHost && !Array.from(this.ghostHost.children).includes(this.ghostElement)) {
12659
+ ghostReattached = true;
12660
+ this.ghostHost.appendChild(this.ghostElement);
12661
+ }
12662
+ else if (!this.ghostHost && !Array.from(document.body.children).includes(this.ghostElement)) {
12663
+ ghostReattached = true;
12664
+ document.body.appendChild(this.ghostElement);
12665
+ }
12666
+ if (ghostReattached) {
12667
+ this.ghostElement.setPointerCapture(this._pointerDownId);
12668
+ return;
12669
+ }
12670
+ }
12653
12671
  const eventArgs = {
12654
12672
  originalEvent: event,
12655
12673
  owner: this,
@@ -67179,7 +67197,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
67179
67197
  if (this.isPercentWidth) {
67180
67198
  /* width in %*/
67181
67199
  const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
67182
- width = computed.indexOf('%') === -1 ? parseInt(computed, 10) : null;
67200
+ width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
67183
67201
  }
67184
67202
  else {
67185
67203
  width = parseInt(this.width, 10);