Reputation: 21
I'm using the Dialog from jQuery, http://jqueryui.com/dialog/#modal-message It works perfectly fine, I just can't seem to move the dialog window's position.
How do I achieve this? I've tried looking for the code in it's CSS, tried inspecting the element and everything, it just won't budge.
What am I doing wrong? Where do I actually modify it?
Upvotes: 2
Views: 2913
Reputation: 95
if you want to drag this pop-up, just define
draggable: true,
if want to change position of pop-up just define vertical and horizontal position in
position: ['center', 'top']
Upvotes: 1
Reputation: 406
You can set the "position" setting when constructing it:
http://api.jqueryui.com/dialog/#option-position
Upvotes: 1