From 0f7673b8d81939fd33c29713b0baa393f014091b Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Thu, 19 Dec 2024 11:58:40 +0000 Subject: [PATCH] Fixed #17125 and #17129 --- packages/primeng/src/calendar/calendar.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/primeng/src/calendar/calendar.ts b/packages/primeng/src/calendar/calendar.ts index 7966d208f7f..e9f6fbf4bf8 100644 --- a/packages/primeng/src/calendar/calendar.ts +++ b/packages/primeng/src/calendar/calendar.ts @@ -27,6 +27,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { absolutePosition, addClass, + addStyle, appendChild, blockBodyScroll, find, @@ -489,8 +490,8 @@ export const CALENDAR_VALUE_ACCESSOR: any = {
- - + +
@@ -3172,6 +3173,10 @@ export class Calendar extends BaseComponent implements OnInit, AfterContentInit, if (!this.inline) { this.overlay = event.element; this.overlay?.setAttribute(this.attributeSelector as string, ''); + const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined; + + addStyle(this.overlay, styles); + this.appendOverlay(); this.updateFocus(); if (this.autoZIndex) {