@wcardinal/wcardinal-ui 0.395.0 → 0.396.0

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.395.0
2
+ Winter Cardinal UI v0.396.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -49188,7 +49188,13 @@
49188
49188
  };
49189
49189
  DApplicationLayer.prototype.onResize = function () {
49190
49190
  var options = this._options;
49191
- var bbox = this._rootElement.getBoundingClientRect();
49191
+ var bboxes = this._rootElement.getClientRects();
49192
+ if (bboxes.length <= 0) {
49193
+ // The root element size is (0, 0) and not visible.
49194
+ // In this case, skip the resizing.
49195
+ return;
49196
+ }
49197
+ var bbox = bboxes[0];
49192
49198
  var newWidth = options.isWidthFixed() ? options.getWidth() : bbox.width;
49193
49199
  var newHeight = options.isHeightFixed() ? options.getHeight() : bbox.height;
49194
49200
  this.renderer.resize(newWidth, newHeight);
@@ -53443,7 +53449,7 @@
53443
53449
  newItemIndexEnd += 1;
53444
53450
  }
53445
53451
  var newItemCount = newItemIndexEnd - newItemIndexStart;
53446
- if (newItemCount < oldItemCount && oldItemCount - 2 <= newItemCount) {
53452
+ if (newItemCount < oldItemCount) {
53447
53453
  newItemCount = oldItemCount;
53448
53454
  newItemIndexEnd = newItemIndexStart + newItemCount;
53449
53455
  }
@@ -71935,7 +71941,7 @@
71935
71941
  var newRowIndexMappedEnd = Math.floor(newRowIndexMappedUpperBound);
71936
71942
  newRowIndexMappedEnd += (newRowIndexMappedEnd - newRowIndexMappedStart) % 2 === 1 ? 3 : 2;
71937
71943
  var newRowCount = newRowIndexMappedEnd - newRowIndexMappedStart;
71938
- if (newRowCount < oldRowCount && oldRowCount - 2 <= newRowCount) {
71944
+ if (newRowCount < oldRowCount) {
71939
71945
  newRowCount = oldRowCount;
71940
71946
  newRowIndexMappedEnd = newRowIndexMappedStart + newRowCount;
71941
71947
  }