From 1625d6e4f585c322100a1c3085819480e3269a95 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: Fri, 9 Jun 2023 12:20:59 +0300 Subject: [PATCH] Refactor #3965 - Update for OverlayPanel --- components/lib/overlaypanel/BaseOverlayPanel.vue | 5 +---- components/lib/overlaypanel/OverlayPanel.vue | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/lib/overlaypanel/BaseOverlayPanel.vue b/components/lib/overlaypanel/BaseOverlayPanel.vue index 28fb459aa..8b49e6e04 100644 --- a/components/lib/overlaypanel/BaseOverlayPanel.vue +++ b/components/lib/overlaypanel/BaseOverlayPanel.vue @@ -4,10 +4,7 @@ import { useStyle } from 'primevue/usestyle'; const styles = ` .p-overlaypanel { - position: absolute; margin-top: 10px; - top: 0; - left: 0; } .p-overlaypanel-flipped { @@ -87,7 +84,7 @@ const classes = { ], content: 'p-overlaypanel-content', closeButton: 'p-overlaypanel-close p-link', - closeIcon: ({ props }) => ['p-overlaypanel-close-icon ', props.closeIcon] + closeIcon: 'p-overlaypanel-close-icon' }; const { load: loadStyle } = useStyle(styles, { id: 'primevue_overlaypanel_style', manual: true }); diff --git a/components/lib/overlaypanel/OverlayPanel.vue b/components/lib/overlaypanel/OverlayPanel.vue index 4ee6aece5..8410a89ae 100755 --- a/components/lib/overlaypanel/OverlayPanel.vue +++ b/components/lib/overlaypanel/OverlayPanel.vue @@ -7,7 +7,7 @@ @@ -104,6 +104,7 @@ export default { }, onEnter(el) { this.container.setAttribute(this.attributeSelector, ''); + DomHandler.addStyles(el, { position: 'absolute', top: '0', left: '0' }); this.alignOverlay(); if (this.dismissable) {