Skip to content

Commit

Permalink
fix(sidebar): Fix usage of $document
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfeil committed Jun 25, 2018
1 parent e5239aa commit 7eed54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/controllers/sidebar.boxdetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
osemMapData.getMap('map_main').then(function (map) {
var padding = 450; // sidebar width: 450px
// consider smaller devices (250px min map-width + 450px sidebar-width)
if ($document.body.clientWidth <= 700) {padding = 0;}
if ($document[0].body.clientWidth <= 700) {padding = 0;}
if (Sidebar.minimized) {padding = 0;}

map.fitBounds(bounds, {
Expand Down

0 comments on commit 7eed54a

Please sign in to comment.