From fe0cc707370e9229a423caa7680fd31778c512d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 3 Aug 2023 10:54:11 +0300 Subject: [PATCH] Unstyled BlockUI update --- components/lib/blockui/BaseBlockUI.vue | 8 -------- components/lib/blockui/BlockUI.vue | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/components/lib/blockui/BaseBlockUI.vue b/components/lib/blockui/BaseBlockUI.vue index de57c67b5..248251f8d 100644 --- a/components/lib/blockui/BaseBlockUI.vue +++ b/components/lib/blockui/BaseBlockUI.vue @@ -7,14 +7,6 @@ const styles = ` position: relative; } -.p-blockui { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - .p-blockui.p-component-overlay { position: absolute; } diff --git a/components/lib/blockui/BlockUI.vue b/components/lib/blockui/BlockUI.vue index be011cbf2..905d202d4 100755 --- a/components/lib/blockui/BlockUI.vue +++ b/components/lib/blockui/BlockUI.vue @@ -43,6 +43,13 @@ export default { } else { this.mask = document.createElement('div'); !this.isUnstyled && this.mask.setAttribute('class', styleClass); + DomHandler.addStyles(this.mask, { + position: 'absolute', + top: '0', + left: '0', + width: '100%', + height: '100%' + }); this.$refs.container.appendChild(this.mask); }