p-dialog with height has invalid behavior while resizing #5974
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/angular-uamnc8?embed=1&file=src/app/app.component.html
Current behavior
Pre-settings: p-dialog has [heigh] value
In case of viewport (browser window height) has not enough height to show the whole dialog, content height is set to 75% of viewport. But window height is not changed and keeps initial value.
That cause to bug, that scrollable content area has height not agreed with dialog height and empty spaces.
Expected behavior
If viewport has not enough height, not only content area should change its height, but also p-dialog height should be changed.
What is the motivation / use case for changing the behavior?
Fixed p-dialog with height is useless on resize.
**Angular version: 6
PrimeNG version: 6
Browser: Chrome | Firefox | Opera
Language: TypeScript
The text was updated successfully, but these errors were encountered: