Mapframe does not work properly when placed inside a collapsible environment. Only part of the map is shown on the left side. See example here:
Description
Details
Event Timeline
At first sight the situation seems to be a bit challenging: the map would require a map.invalidateSize() on expand, but it seems nothing in the code can notify us about the change in container's collapsed/expanded status...
As a consequence, I'm not sure where to put a hook and ask leaflet to redraw the map, but I'll keep poking my head around it.
Change 294839 had a related patch set uploaded (by JGirault):
Fix mapframe not displaying properly when placed inside a collapsible container.
We could go a bit further and avoid creating maps that are hidden by default. Only instantiate the Leaflet map when the collapsed container expands. This would save some JS execution time on page load. I will create a ticket in the backlog.
Change 294839 merged by jenkins-bot:
Fix mapframe not displaying properly when placed inside a collapsible container.
Change 294856 had a related patch set uploaded (by Yurik):
Fix mapframe not displaying properly when placed inside a collapsible container.
Change 294856 merged by jenkins-bot:
Fix mapframe not displaying properly when placed inside a collapsible container.
I re-open this task, because there are problems with maps in the collapsible environment again. Check, for example:
https://ru.wikivoyage.org/wiki/Гродненская_область
and click on "Открыть карту". Only a small part in the top of the map is displayed.
It is highly desirable to solve this problem ASAP, because it affects all pages on Russian Wikivoyage
Change 305063 had a related patch set uploaded (by JGirault):
Fix mapframe not displaying properly when placed inside a collapsible container.
Change 305063 merged by jenkins-bot:
Fix mapframe not displaying properly when placed inside a collapsible container.