map wont go under search results

This commit is contained in:
2018-09-13 14:15:39 +02:00
parent 8b433b7792
commit bcda3eb9bc
2 changed files with 6 additions and 4 deletions
@@ -116,6 +116,7 @@
.on('search-results-loaded', function(e){
initAjaxLinks();
initAudioLinksHover();
checkVisibleCorpusMapSpace();
})
// do not close index or notice modale on entree click
.on('open_entree', function(e){
@@ -794,12 +795,13 @@
_$row.find('.col').each(function(i,e){
var $col = $(this);
var offset = $col.offset();
console.log('$col', $col);
switch(true){
case $col.is('.float-right'):
right_limit = Math.max(right_limit, Math.abs(offset.left-window.innerWidth));
right_limit = Math.max(right_limit, Math.abs(offset.left-15-window.innerWidth));
break;
default:
left_limit = Math.max(left_limit, offset.left+$col.width());
left_limit = Math.max(left_limit, offset.left+$col.width()+15);
break;
}
});