pad besides sidebar if details are shown

This commit is contained in:
Laura Klünder 2017-11-22 21:22:15 +01:00
parent d96663bf73
commit f842abd85c

View file

@ -617,7 +617,7 @@ c3nav = {
_add_map_padding: function(options, topleft, bottomright) {
// add padding information for the current ui layout to fitBoudns options
var $search = $('#search'),
padBesideSidebar = ($(window).width() > 1000 && $(window).height() < 600),
padBesideSidebar = ($(window).width() > 1000 && ($(window).height() < 600 || c3nav.state.details)),
left = padBesideSidebar ? $search.width()+10 : 0,
top = padBesideSidebar ? 10 : $search.height()+10;
options[topleft || 'paddingTopLeft'] = L.point(left+13, top+41);