Followup from T192251: Mapframes with a width of 100% fail to display on the mobile site unless "frameless" is used
First, we should encourage use of width="full" rather than width="100%" in map frame, since the code knows how to handle that better.
VisualEditor's scalable can't really handle full width very well, especially when resizing. This produces several big bugs here:
- When editing a page with a full-width map, the map appears, in VE, as "squished"
- If any edit happens on the full-width map with width="full" then the saved <mapframe> will get the width "NaN" instead
This should be fixed.
- We should probably add an option in the VE dialog for a "full width" map (that hides the scaled numbers and provides "width=full".
- As @Esanders recommended, we might want to prevent resizing (disable ve.ce.ResizableNode in a map node if the map is full width)