Large dialog content or small screens causes the dialog to be positioned outside the viewport #1925
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ...
Plunkr Case
http://plnkr.co/edit/sIzRqJnm5TD7ZrbpPJaH?p=preview
Current behavior
When a dialog is larger then the current screen size, the dialog is positioned outside the viewport. For example at position (-100, -100)
Expected behavior
The dialog should be positioned at the top left corner of the screen instead, position (0, 0), or at the corresponding position should the dialog only be too large in one dimension, (0, x) or (x, 0)
Minimal reproduction of the problem with instructions
<p-dialog header="Godfather I" [(visible)]="display" modal="modal" width="350" responsive="true">
What is the motivation / use case for changing the behavior?
Making the dialog more responsive
The text was updated successfully, but these errors were encountered: