map wont go under search results
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user