diff --git a/src/app/preview/overlays/overlays.component.css b/src/app/preview/overlays/overlays.component.css
index b4153839..ac94bd40 100644
--- a/src/app/preview/overlays/overlays.component.css
+++ b/src/app/preview/overlays/overlays.component.css
@@ -11,8 +11,7 @@
}
:host ::ng-deep .dx-button:not(.dx-closebutton) {
- margin-right: 30px;
- margin-bottom: 10px;
+ margin: 0 15px 10px 15px;
}
:host ::ng-deep .dx-overlay-wrapper.dx-toast-wrapper {
@@ -41,7 +40,7 @@
#target-block {
display: inline-block;
text-align: center;
- padding: 100px 0 50px;
+ padding: 120px 0 50px;
height: 200px;
width: 100%;
}
diff --git a/src/app/preview/overlays/overlays.component.html b/src/app/preview/overlays/overlays.component.html
index cbc26833..86452671 100644
--- a/src/app/preview/overlays/overlays.component.html
+++ b/src/app/preview/overlays/overlays.component.html
@@ -49,10 +49,9 @@
-
+
+ [position]="{ of: ofValue, at: 'center', my: 'center' }">
diff --git a/src/app/preview/overlays/overlays.component.ts b/src/app/preview/overlays/overlays.component.ts
index 12d949dd..c2bee0ff 100644
--- a/src/app/preview/overlays/overlays.component.ts
+++ b/src/app/preview/overlays/overlays.component.ts
@@ -18,6 +18,8 @@ export class OverlaysComponent implements OnInit, OnDestroy {
isExpanded = new BehaviorSubject(false);
isExpandedValue = false;
+ ofValue = '#loadpanel-target';
+
actionSheetData: any[] = [
{ text: 'Command 1' },
{ text: 'Command 2' },
@@ -35,13 +37,14 @@ export class OverlaysComponent implements OnInit, OnDestroy {
}
ngOnInit(): void {
- this.subscription = this.isExpanded.subscribe(() => {
+ this.subscription = this.isExpanded.subscribe((value) => {
const flexContainer = document.getElementsByTagName('app-overlays')[0].parentElement.parentElement;
flexContainer.addEventListener('transitionend', () => {
if(this.tooltip) this.tooltip.instance.repaint();
if(this.toast) this.toast.instance.repaint();
if(this.loadPanel) this.loadPanel.instance.repaint();
}, false);
+ this.ofValue = value ? '#loadpanel-target-expanded' : '#loadpanel-target';
});
}