Search code examples
csshtmlfixedaddthis

Addthis widget in fixed element - position error?


I am using addthis as a vertical toolbox with the popup to be displayed on hover in a fixed element. But when scrolling, the popup is displayed somewhere else. I tried using configs of offset top and left, but there were of no use. Is there any solution for this ???

DEMO here ----> http://jsfiddle.net/vaakash/QzjxR/1/embedded/result/


Solution

  • I tried using the code using jQuery and fairly satisfied my needs. So. here i used the on "mousemove" event to position the popup and it did worked.

    $('.addthis_button_compact, .addthis_bubble_style').mousemove(function(e){
        $('#at15s').css({
            'top': e.pageY - 200 ,
            'left': e.pageX - 200
        });
    });