Resizing disabled

This commit is contained in:
piotrpekala7 2020-03-30 09:29:16 +02:00
parent 7393fd52e1
commit 65f86ee4e4
2 changed files with 9 additions and 3 deletions

View File

@ -3,6 +3,7 @@
(document:mousemove)="dragWidget($event)"
(document:mouseup)="toggleDragging(false)">
</div>
<!-- Option with resizing
<div
class="consoleWrapper"
[ngClass]="{lightTheme: isLightThemeEnabled}"
@ -13,7 +14,12 @@
[resizeEdges]="{ right: true, left: true, bottom: true, top: true }"
[enableGhostResize]="true"
(resizeStart)="toggleDragging(false)"
(resizeEnd)="onResizeEnd($event)">
(resizeEnd)="onResizeEnd($event)"> -->
<div
class="consoleWrapper"
[ngClass]="{lightTheme: isLightThemeEnabled}"
(mousedown)="toggleDragging(true)"
[ngStyle]="style">
<mat-tab-group [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
<mat-tab>

View File

@ -98,8 +98,8 @@ export class ConsoleWrapperComponent implements OnInit {
if (
event.rectangle.width &&
event.rectangle.height &&
(event.rectangle.width < 600 ||
event.rectangle.height < 180)
(event.rectangle.width < 720 ||
event.rectangle.height < 456)
) {
return false;
}