map/graph: use sidebar.getWidth directly

This commit is contained in:
Nils Schneider 2015-07-12 00:09:57 +02:00
commit 9a950a2a8e
3 changed files with 6 additions and 6 deletions

View file

@ -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() {