Closed nathandao closed 4 years ago
This could work! Didn't notice any problems when testing locally through the Survey page. But maybe let's just hide the map link button in overview, when it is viewed as an embed?
Yup. Removed button from embed view, now the self-collapsing map can't be witnessed any more : D
/overview -> Overview
instead of/overview -> MapView
To test, we could modify the
Survey.tsx
file (which already has iframeResizer "parent" part loaded).Change the Survey component's code to:
Both iframes are set with fixed heights, but map content height should stay at 400px, indicating that
iframe-resizer/js/iframeResizer.contentWindow
is not activated there.Hold your breath before clicking
Karttaan
button at the bottom of Overview