MediaWiki:BibleGet.js: differenze tra le versioni

nessun oggetto della modifica
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 41: Riga 41:
}
}
if(excessWidth > 0 && excessWidth < rect.x){
if(excessWidth > 0 && excessWidth < rect.x){
console.log('This element was off the left of the screen');
console.log('This element was off the right hand side of the screen');
let newLeft = left - excessWidth;
//let newLeft = left - excessWidth;
let newLeft = $span.offset().left - rect.width;
$bGetTIP.css({"left":newLeft});
$bGetTIP.css({"left":newLeft});
}
}
Riga 123: Riga 124:
}
}
if(excessWidth > 0 && excessWidth < rect.x){
if(excessWidth > 0 && excessWidth < rect.x){
console.log('This element was off the left of the screen');
console.log('This element was off the right hand side of the screen');
let newLeft = left - excessWidth;
let newLeft = left - excessWidth;
$bGetTIP.css({"left":newLeft});
$bGetTIP.css({"left":newLeft});