javascript - bootstrap popover positioning - not working -


i have login , register link user can click , gets popover opened login. want popover bit shifted left hangs this: enter image description here

i on 15' screen laptop, far fine. if open in bigger resolution, looks this:

enter image description here

i setting in js this:

$('#profilepover').on('shown.bs.popover', function(){    $('.popover').css('left','774px'); }); 

how can make stick login link no matter how big screen is?

instead of left use right:

$('#profilepover').on('shown.bs.popover', function(){    $('.popover').css({right: '115px', left: 'auto'}); }); 

right position not change window resize. of course 115px example, adjust actual layout. need reset left position auto in case because default popover left 0.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -