S
S
Station 722018-10-14 23:48:38
JavaScript
Station 72, 2018-10-14 23:48:38

How to control the size of the control.RoutePanel panel in Yandex Maps on mobile devices?

I used this example https://tech.yandex.ru/maps/jsbox/2.1/deliveryCalc...
This is what the map looks like on a PC
5bc3aa92419af004595235.png
This is what the panel looks like if the browser window is narrowed
5bc3aab193297930108101.png
Everything is fine!
Now with small screens. It's an iPhone 5. Already bad.
5bc3aad5524c1732292975.png
We turn over.
5bc3aaf5796d3773058598.png
It doesn't fit at all!
Can you tell me how to control the size of the route bar? The doc describes that it is adaptive. Specified float:left (as it is told in dock) for it and for the green list - did not help. Already twisted and spit - I don’t understand (
Many thanks to everyone!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Malfos, 2018-10-16
@malfos

Read the map branch, you need to coordinately catch the alleged center of the map
https://tech.yandex.ru/maps/jsbox/2.1/mapbasics

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question