Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p-calendar inside p-table filter z-index #5542

Closed
sgentile opened this issue Apr 11, 2018 · 6 comments
Closed

p-calendar inside p-table filter z-index #5542

sgentile opened this issue Apr 11, 2018 · 6 comments

Comments

@sgentile
Copy link

I believe this is a z-index issue :

When using within a template

<p-calendar *ngSwitchCase="'termStartDate'" [showIcon]="true"></p-calendar>

When clicking on the calendar to open it - it is hidden under the table itself:
image

@sgentile
Copy link
Author

Found a workaround here

#3940

<p-calendar *ngSwitchCase="'termStartDate'" [style]="{'position': 'fixed', 'overflow': 'visible', 'z-index': '999'}" [showIcon]="true"></p-calendar>

@sgentile
Copy link
Author

Actually that isn't a work around at all - it's a 'fixed' position so when you scroll it doesn't maintain it's position.

@rexorient
Copy link

Easier "fix" but similarly flawed: add appendTo="body" to p-calendar.

@sgentile
Copy link
Author

adding appendTo="body" fixed this for me - thank you

@bonavida
Copy link

bonavida commented Mar 28, 2019

I'm sorry to put a comment on this after it has been already closed, but with the appendTo="body" workaround, when you scroll it still doesn't maintain its position...

Do you know any other solution for this?

@joelrlneto
Copy link

For me, I had to set appendTo="body" and baseZIndex = 1050 because I have a navbar with z-index: 1020.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants