primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.53k stars 1.23k forks source link

ConfirmDialog: shifting content under a modal window #6089

Open slider23 opened 3 months ago

slider23 commented 3 months ago

Describe the bug

Primevue 4 ConfirmDialog has classic modal UI issue - content (or only right edge of content - on small screens) shifting on browsers with non-zero scrollbar widths. For example, Chrome on Linux. Primevue 3 is free from such a issue. See the gif:

Reproducer

https://primevue.org/confirmdialog/

PrimeVue version

4

Vue version

4.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

Any browser on Linux or Windows (not MacOs)

Steps to reproduce the behavior

  1. Go to https://primevue.org/confirmdialog/
  2. Click any "Save" button
  3. After modal window is displayed, the page content under modal window is shifted to the right by 15px.

Expected behavior

Сontent under the modal window should not shift. Like on https://v3.primevue.org/confirmdialog/

murshex commented 2 months ago

Same problem

KumJungMin commented 2 months ago

https://github.com/primefaces/primeuix/blob/main/packages/utils/src/dom/helpers/blockBodyScroll.ts#L6

스크린샷 2024-09-01 오후 10 03 57