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); }