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