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-image inside p-scrollPanel - Scrollbar shows through image #12554

Closed
psarno opened this issue Jan 25, 2023 · 2 comments
Closed

p-image inside p-scrollPanel - Scrollbar shows through image #12554

psarno opened this issue Jan 25, 2023 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@psarno
Copy link

psarno commented Jan 25, 2023

Describe the bug

When you embed a p-image control inside of a p-scrollPanel, the scrollbar from the scroll panel remains visible and functional and appears above the image.

image

Environment

See below.

Reproducer

https://stackblitz.com/edit/github-sjyv5t-yxp2ga

Angular version

15.1.0

PrimeNG version

15.1.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.13.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Run the reproducer
  2. Click on the image

Note the scrollbar is visible/functional above the image.

Expected behavior

The scroll panel's scrollbar should not be functional above the image.

@psarno psarno added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 25, 2023
@psarno
Copy link
Author

psarno commented Jan 25, 2023

The z-index of p-scrollpanel-bar is set to 2. Unsetting this fixes the overlap although I'm not sure specifically why this is set to 2.

Changing the z-index from 2 fixes the overlap but renders the scrollbar unusuable so that is not a workaround.

@gucal gucal added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 30, 2023
@cetincakiroglu
Copy link
Contributor

fixed in a1d46d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants