@progress/kendo-angular-common 23.3.0-develop.15 → 23.3.0-develop.17

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.
@@ -369,6 +369,9 @@ const hasFocusableParent = (element, container) => {
369
369
  };
370
370
 
371
371
  const isVisible = (element) => {
372
+ if (!isDocumentAvailable() || !element?.getBoundingClientRect) {
373
+ return false;
374
+ }
372
375
  const rect = element.getBoundingClientRect();
373
376
  const hasSize = rect.width > 0 && rect.height > 0;
374
377
  const hasPosition = rect.x !== 0 && rect.y !== 0;
@@ -1660,8 +1663,15 @@ const scrollbarWidth = () => {
1660
1663
  cachedPixelRatio = window.devicePixelRatio || 1;
1661
1664
  const outer = document.createElement('div');
1662
1665
  const inner = document.createElement('div');
1663
- outer.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block;width:100px;visibility:hidden';
1664
- inner.style.cssText = 'width:100%;display:block';
1666
+ outer.style.overflow = 'scroll';
1667
+ outer.style.overflowX = 'hidden';
1668
+ outer.style.zoom = '1';
1669
+ outer.style.clear = 'both';
1670
+ outer.style.display = 'block';
1671
+ outer.style.width = '100px';
1672
+ outer.style.visibility = 'hidden';
1673
+ inner.style.width = '100%';
1674
+ inner.style.display = 'block';
1665
1675
  outer.appendChild(inner);
1666
1676
  document.body.appendChild(outer);
1667
1677
  cachedScrollbarWidth = outer.getBoundingClientRect().width - inner.getBoundingClientRect().width;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-common",
3
- "version": "23.3.0-develop.15",
3
+ "version": "23.3.0-develop.17",
4
4
  "description": "Kendo UI for Angular - Utility Package",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,7 +23,7 @@
23
23
  "@progress/kendo-common": "^1.0.1",
24
24
  "@progress/kendo-draggable": "^3.0.2",
25
25
  "tslib": "^2.3.1",
26
- "@progress/kendo-angular-schematics": "23.3.0-develop.15"
26
+ "@progress/kendo-angular-schematics": "23.3.0-develop.17"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"