[openstreetmap/openstreetmap-website] Fix scroll layer choice problem on mobile (#1569)

Andy Allan notifications at github.com
Wed Jul 17 14:22:41 UTC 2019


I've reopened #1551 since I've been able to reproduce the reported problem.

This PR does fix the problem. However, it does so by making the `map-ui` panel always 50% of screen height, even if it is the only open panel (Currently if the `map-ui` panel is shown alone, it is full height). For reference, the `sidebar` is always 50% height on small screens.

So it fixes the problem described, but with the downside that the `map-ui` panels are always smaller (and so need to be scrolled more often, and options on the layer switcher will be usually hidden). 

Perhaps there is an alternative approach that allows the `map-ui` to remain 100% when shown alone, but 50% when the sidebar is active? I'm not strong enough with CSS to know if that's feasible.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1569#issuecomment-512277142
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190717/ca2df347/attachment.html>


More information about the rails-dev mailing list