map/graph: use sidebar.getWidth directly
This commit is contained in:
parent
93ca06ab75
commit
9a950a2a8e
3 changed files with 6 additions and 6 deletions
|
|
@ -269,7 +269,7 @@ define(["map/clientlayer", "map/labelslayer",
|
|||
}
|
||||
|
||||
function setView(bounds) {
|
||||
map.fitBounds(bounds, {paddingTopLeft: [sidebar.getWidth(), 0]})
|
||||
map.fitBounds(bounds, {paddingTopLeft: [sidebar(), 0]})
|
||||
}
|
||||
|
||||
function resetZoom() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue