jquery tooltip on ModalPopupExtender incorrect position -
here tooltip using right now:
$('.popupmsg').hover(function (event) { var msg = parseint($(this).attr('tooltip')); $('<div class="tooltipx">' + msg + '</div>') .appendto('.remarkpopupx') .css('top', (event.pagey - 10) + 'px') .css('left', (event.pagex + 10) + 'px') .fadein(0); }, function () { $('.tooltipx').remove(); }).mousemove(function (event) { var q = getscreencoordinates(event.target); $('.tooltipx') .css('top', (event.pagey - 10) + 'px') .css('left', (event.pagex + 10) + 'px') });
and css:
.tooltipx { display: none; font-family: tahoma; position: absolute; border: 2px solid #000000; background-color: #ffffaa; padding: 12px 16px; color: #000000; text-align: left; text-decoration: none; }
on parent page, have no problem whatsoever custom tooltip(either in maximum windows or default size). however, tooltip acts strangely different on modalextenderpopup. appears away target element(almost outside of modalpopup); if change window size, position changes somewhere else. looks somehow content width , height affected modalpopup itself. how tooltip display @ correct position (next target element) on modalpopupextender?
thanks in advance.
well cant tell exact solution.i working on same tooltip , having position problem , tried show tooltip first positioned blink , worked me.try testing .this might give clue.
Comments
Post a Comment