Adding the top notation to the my and at attributes seems to work - if you want to align the top and to the right of the binding (tested in Chrome 11.0.6 and IE9):
function openDialog(row_index) { var target = $('#note'+row_index); $("#dialog_content_"+row_index).dialog({ width:150 }, { height:80 }).dialog('widget').position({ my: 'left top', at: 'right top', of: target }); }
Here is the jQuery page for testing different positions.
EDIT:
Here is a fiddle showing its alignment on the right ... maybe the problem is elsewhere in your CSS or html? Like the fiddle I tested with jQuery 1.5.1, jQuery UI 1.8.9 and the base theme CSS file.
source share