@syncfusion/ej2-layouts 20.1.58 → 20.1.61

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.
@@ -3198,9 +3198,15 @@ let DashboardLayout = class DashboardLayout extends Component {
3198
3198
  let heightValue;
3199
3199
  let widthValue;
3200
3200
  if (this.checkMediaQuery()) {
3201
- heightValue = ((this.maxRow()) *
3201
+ let entirePanelsY = 0;
3202
+ for (let i = 0; i < this.panels.length; i++) {
3203
+ if (this.panels[i].sizeY) {
3204
+ entirePanelsY += this.panels[i].sizeY;
3205
+ }
3206
+ }
3207
+ heightValue = ((entirePanelsY) *
3202
3208
  (this.element.parentElement && ((this.element.parentElement.offsetWidth)) / this.cellAspectRatio) +
3203
- (this.maxRow() - 1) * this.cellSpacing[1]) + 'px';
3209
+ (entirePanelsY - 1) * this.cellSpacing[1]) + 'px';
3204
3210
  }
3205
3211
  else {
3206
3212
  heightValue = ((this.maxRow()) *