@hpcc-js/layout 2.48.0 → 2.49.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/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  }
21
21
 
22
22
  var PKG_NAME = "@hpcc-js/layout";
23
- var PKG_VERSION = "2.48.0";
24
- var BUILD_VERSION = "2.103.2";
23
+ var PKG_VERSION = "2.49.1";
24
+ var BUILD_VERSION = "2.104.2";
25
25
 
26
- /*! *****************************************************************************
26
+ /******************************************************************************
27
27
  Copyright (c) Microsoft Corporation.
28
28
 
29
29
  Permission to use, copy, modify, and/or distribute this software for any
@@ -586,11 +586,19 @@
586
586
  var leftPerc;
587
587
  var rightSize;
588
588
  var rightPerc;
589
- this.target().getBoundingClientRect();
589
+ var bcRect = this.target().getBoundingClientRect();
590
+ bcRect.top;
591
+ bcRect.left;
592
+ bcRect.bottom;
593
+ bcRect.right;
590
594
  if (this.target() instanceof SVGElement) {
591
595
  parseFloat(this.target().getAttribute("width"));
592
596
  parseFloat(this.target().getAttribute("height"));
593
597
  }
598
+ else {
599
+ bcRect.width;
600
+ bcRect.height;
601
+ }
594
602
  if (this.sectionTypes().indexOf("top") !== -1) {
595
603
  topSize = this.topSize();
596
604
  topPerc = this.topPercentage();