There is a position option in jQuery UI Dialog widgets, which can be an object, a string or an array (with the String and Array forms obsolete). The array may contain a pair of x, y coordinates in the pixel offset from the upper left corner of the viewport. I do not understand what the equivalent of an object is. Examples of objects in the documentation use strings, such as left or center, rather than pixel coordinates.
How would you write
position: [42, 80]
using Object notation?
You can specify an offset for a position parameter using object notation.
$('.selector').dialog({ position: { my: 'left+42 top+80', at: 'left+42 top+80' } });
http://jsfiddle.net/rknjG/
Source: https://habr.com/ru/post/1502831/More articles:Automatically launch Java application when OS starts - javaPillow not loading image does not identify image file - pythonSorting an array of cells with empty elements in Matlab - sortingGet the file name after clicking the open button in the file view dialog using JavaScript / jQuery - javascriptFacebook login with custom port - login@ EnableTransactionManagement, @ ComponentScan and problems with DataSourceTransactionManager - springLinux device driver file operations: is it possible to have race conditions? - linuxSeekBar inside DrawerLayout - androidHow to show background image on top of background image using CSS - cssWhat is the bit depth web audio API? - audioAll Articles