6371:typo_corrections

This commit is contained in:
Dmitriymush 2022-04-05 14:35:35 +03:00
parent 1a6ad05123
commit 664d6bc1d3

View File

@ -653,15 +653,15 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
} }
public mainLayoutWidth(): string { public mainLayoutWidth(): string {
if (this.isEditingWidget && this.editingLayoutCtx.id === 'main') { if (this.isEditingWidget && this.editingLayoutCtx.id === LaouytType.MAIN) {
return '100%'; return '100%';
} else { } else {
return this.layouts.right.show && !this.isMobile ? this.calculateWidth('main') : '100%'; return this.layouts.right.show && !this.isMobile ? this.calculateWidth(LaouytType.MAIN) : '100%';
} }
} }
public mainLayoutHeight(): string { public mainLayoutHeight(): string {
if (!this.isEditingWidget || this.editingLayoutCtx.id === 'main') { if (!this.isEditingWidget || this.editingLayoutCtx.id === LaouytType.MAIN) {
return '100%'; return '100%';
} else { } else {
return '0px'; return '0px';
@ -669,7 +669,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
} }
public rightLayoutWidth(): string { public rightLayoutWidth(): string {
if (this.isEditingWidget && this.editingLayoutCtx.id === 'right') { if (this.isEditingWidget && this.editingLayoutCtx.id === LaouytType.RIGHT) {
return '100%'; return '100%';
} else { } else {
return this.isMobile ? '100%' : this.calculateWidth(LaouytType.RIGHT); return this.isMobile ? '100%' : this.calculateWidth(LaouytType.RIGHT);