$(function () {
$('.popover-tooltip').popover({
placement: function (context, source) {
var position = $(source).position();
if (position.left > 515) {
return "left";
}
if (position.left < 515) {
return "right";
}
if (position.top < 110){
return "bottom";
}
return "top";
}
});
});
<br><br><br><br><br><br><br><br><br><br><br><br><br>
<a class="popover-tooltip" title="Test Başlığı" data-content="Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği Test İçeriği ">
Popover aç
</a>
<br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br>
External resources loaded into this fiddle: