pad besides sidebar if details are shown
This commit is contained in:
parent
d96663bf73
commit
f842abd85c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue