futurice / symptomradar

Symptomradar (Oiretutka) crowdsources coronavirus symptoms from news media audience
MIT License
25 stars 2 forks source link

Position timeline filter at the bottom of the iframe in embed mode #321

Closed nathandao closed 4 years ago

nathandao commented 4 years ago

We try to center the dialog into the device's screen, but in case of iframe, the whole iframe's length is taken into account instead of the device's screen size, so the modal is cut off from the screen, resulting in something like this.

image

Firefox seems to respect the focus set to close button when the modal opens, and manages to scroll back to fit the modal to the top of the page, but this is not the case for Chrome : (

So I decided to place the Timeline modal al the bottom of the page if it is embedded.

image