1

Using jquery ui dialog, if the window is smaller in width than the dialog, then the dialog appears but the left side is off-screen. Is there any way I can make it go off-screen to the right instead so that I always see the whole left side?

Edit: It seems a lot of people don't understand what I'm asking. It has nothing to do with setting the position of the dialog to center. That has already been done.

tuseau
  • 1,334
  • 4
  • 17
  • 37
  • Did you search Google for something like _jQuery ui dialog align center_? The **first hit** I got was this: http://stackoverflow.com/questions/1839702/how-can-i-position-my-jquery-dialog-to-center – Joum Jul 05 '13 at 11:16
  • The question is how do you initialize your dialog??? – A. Wolff Jul 05 '13 at 11:18
  • I already have the dialog position set to center. – tuseau Jul 05 '13 at 11:19
  • If people aren't understanding what you're asking, perhaps you need to clarify it better and provide a code example of what you've done, what's not working and what you expect it to do. – JaredMcAteer Jul 05 '13 at 14:16

1 Answers1

1

May be you can try setting using co-ordinates of existing DIV as follows:

$('#dialogDiv').dialog( "option", "position",{my: "left top",at: "left bottom", of: "#referenceDiv"});
Yogesh
  • 928
  • 1
  • 8
  • 21