[openstreetmap/openstreetmap-website] Weird navbar on GPS traces page (#1639)

Tom Hughes notifications at github.com
Wed Sep 13 19:50:17 UTC 2017


It seems that https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/javascripts/application.js#L82 is the problem - it tries to measure the width of the header elements in the full width and compact modes to work out when to switch between modes given that different languages have different widths.

It looks like just running in the `ready` callback is not enough any more and it hasn't yet figured out the width of the elements properly - adding a zero second delay with `setTimeout` appears to work around it but I wonder if there's a better event to wait on?

-- 
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/issues/1639#issuecomment-329277469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170913/e3f4ce9f/attachment-0001.html>


More information about the rails-dev mailing list