mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix initial map size
This commit is contained in:
@@ -196,10 +196,13 @@ export function init(context) {
|
||||
|
||||
var mapDimensions = map.dimensions();
|
||||
|
||||
d3.select(window).on('resize.editor', function() {
|
||||
function onResize() {
|
||||
mapDimensions = setDimensions(content, null);
|
||||
map.dimensions(mapDimensions);
|
||||
});
|
||||
}
|
||||
|
||||
d3.select(window).on('resize.editor', onResize);
|
||||
onResize();
|
||||
|
||||
function pan(d) {
|
||||
return function() {
|
||||
|
||||
Reference in New Issue
Block a user