Closed dark-gray closed 3 years ago
Thx for the report, ping @johnd0e ;)
Hi.
Yandex map pane changes its size incorrectly since release 3.1.0 (see gif)
I see gif, but I cannot reproduce this with standard example yandex.html
.
Could you provide your code?
At least, i solved this problem by returning _resize function back.
This seems far from optimal..
@dark-gray @all
Is there someone who can tell me how to reproduce the issue? I'd like to fix it, in proper way (that code sample above is not good).
I've run into the similair issue, resizing the container and then executing map.invalidateSize();
doesnt update the map/tiles, though objects are getting redrawn:
To reproduce the issue:
map.invalidateSize();
map.invalidateSize()
works as expected on 3.0.3
@belazz
Could you provide complete sample using some sandbox (like jsfiddle or similar)? And what if you skip step 2?
@johnd0e Sorry for not providing jsfiddle right away: https://jsfiddle.net/tsdp7j4r/3/ (1500ms timeout for container resize)
Skipping step 2 doesnt affect L.yandex in any way, but it affects others - they are not getting updated. You can try it in the jsfiddle I provided (try commenting out map.invalidateSize() and see the difference)
Ok, I see now.
Perhaps we need to reintroduce _resize
method.
_resize: function () {
this._yandex.container.fitToViewport();
}
I will check this later (or feel free to do it yourself).
Hi. Yandex map pane changes its size incorrectly since release 3.1.0 (see gif)![Size trouble](https://user-images.githubusercontent.com/13743005/62835590-fd0fd180-bc62-11e9-89ed-cdc18007c42e.gif)
As i can see, it's because you removed resize_ function call from _update function (it was there in previous versions). At least, i solved this problem by returning resize_ function back.
And after that:![Size trouble solved](https://user-images.githubusercontent.com/13743005/62835713-267d2d00-bc64-11e9-9651-95a54f9f764b.gif)