Tag Archives: UI Dialog Positioning

UI Dialog Positioning

jQuery UI dialog positioning – Stack Overflow

[javascript]
$(".mytext").mouseover(function() {
var width = 250;
var height = 270;
var posX = $(this).offset().left – $(document).scrollLeft() – width + $(this).outerWidth();
var posY = $(this).offset().top – $(document).scrollTop() + $(this).outerHeight();
$("#dialog").dialog({width:width, height:height ,position:[posX, posY]});
}
[/javascript]