Component: p-dialog
bad drag behavior
#13493
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If the user adds a margin to the
p-dialog
, he will have unexpected behaviour after starting to drag the dialog. When the user drags the dialog to the left - it automatically moves to the left. The reason for this bug is inside the logic of the calculation coordinates of the dialog, and we can solve it by removing margins from dialog coordinates calculation.Current behaviour
first-1_vQ5eaKWM.mp4
Behavior after the fix
second-2_EjrfYrzf.mp4
This issue linked to the fixes for PrimeVue and PrimeReact
Environment
Local and production on a server
Reproducer
first-1_vQ5eaKWM.mp4
Angular version
16.2.0
PrimeNG version
16.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.17.1
Browser(s)
Safari 15, Chrome 100+
Steps to reproduce the behavior
p-dialog
component in a template.p-dialog
component usingstyleClass
property.Expected behavior
second-2_EjrfYrzf.mp4
Users can drag dialog to the left after adding margins
The text was updated successfully, but these errors were encountered: