Closed halloweenman closed 6 years ago
Part of the highlighted div element is placed outside the viewport, but paper-dialog will still be rendered within the viewport respecting the min-height value. It should be possible for the user to scroll the contents of the dialog in that situation.
This behavior is implemented in iron-fit-behavior
, there is a useful demo page to reproduce this issue in https://www.webcomponents.org/element/PolymerElements/iron-fit-behavior/demo/demo/index.html
Notice how the min-height is respected, the element is always kept on screen, and the contents are scrollable:
Much appreciated, many thanks for the useful info.
Description
After clicking on a div element containing text, positionTarget is set to that div element and dialog is then opened. Most of the time it works fine but when the div element is located near the bottom of the window then the dialog gets cropped and is not fully displayed inside widow. I would expect the dialog to be fully displayed inside the window but it is not. See image below, the highlighted yellow is the div element that positionTarget is set to.
Here's the code:
Expected outcome
Dialog fully displayed inside window.
Actual outcome
Dialog getting cropped and is not fully displayed inside window.
Browsers Affected