ngx-payvent-shared 0.0.5 → 0.0.6
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.
|
@@ -691,8 +691,8 @@ class SidebarService {
|
|
|
691
691
|
openSidebar(component, data = null, options = {}) {
|
|
692
692
|
let defaultPosition = 'bottom';
|
|
693
693
|
if (window.innerWidth < 576) {
|
|
694
|
-
document.getElementsByTagName("html")[0].style['
|
|
695
|
-
document.getElementsByTagName("body")[0].style['
|
|
694
|
+
document.getElementsByTagName("html")[0].style['overflow'] = 'hidden';
|
|
695
|
+
document.getElementsByTagName("body")[0].style['overflow'] = 'hidden';
|
|
696
696
|
defaultPosition = 'bottom';
|
|
697
697
|
}
|
|
698
698
|
options.position = options.position || defaultPosition;
|
|
@@ -761,12 +761,12 @@ class SidebarService {
|
|
|
761
761
|
return s;
|
|
762
762
|
closee.visible = false;
|
|
763
763
|
if (s.findIndex(a => a.visible) < 0) {
|
|
764
|
-
document.getElementsByTagName("html")[0].style['
|
|
765
|
-
document.getElementsByTagName("body")[0].style['
|
|
764
|
+
document.getElementsByTagName("html")[0].style['overflow'] = 'initial';
|
|
765
|
+
document.getElementsByTagName("body")[0].style['overflow'] = 'initial';
|
|
766
766
|
}
|
|
767
767
|
return s;
|
|
768
768
|
});
|
|
769
|
-
timer(
|
|
769
|
+
timer(200).subscribe(er => {
|
|
770
770
|
this.sidebars.update(s => {
|
|
771
771
|
return s.filter(a => a.visible);
|
|
772
772
|
;
|