Skip to main content

All Questions

0 votes
1 answer
49 views

Jquery ui dialog box set position accross all pages

How can I set the positioning of jquery dialog box to be applied to all dialog calls instead of stating position: {my: "center", at: "center", of: foo} in every instance?
slmglc's user avatar
  • 15
0 votes
1 answer
4k views

Position of a jquery UI dialog from top of DIV

I use a jQuery UI 1.10.2 to display a dialog within a DIV. This container div has a dynamic ajax content. Currently i center the dialog like this: $( "#mydialog" ).dialog({position: my: "center ...
Dominique's user avatar
  • 4,302
0 votes
0 answers
578 views

How to position dialog to current element with jquery ui?

Javascript code: currentElement=0; $(function() { $( "#dialog" ).dialog({ position: { my: "top", at: "bottom", of: $( 'input[name='+...
user710818's user avatar
  • 23.9k
2 votes
1 answer
11k views

JQuery dialog not showing up in center of window

I am using JQuery1.7.1, and JQuery UI 1.8.20 libraries I have also included jquery.ui.position.js in the same bundle. However, the dialog box is not showing up in center of screen. It is showing at ...
Nirman's user avatar
  • 6,773
33 votes
3 answers
85k views

jQuery UI dialog positioning : adjust position top by 20px -

I have a dialog that gets filled by an ajax call. I want to limit the max-height of dialog and also allow it to be scroll-able if this max-height is exceeded. The code below does exactly what I want. ...
chris loughnane's user avatar
9 votes
1 answer
8k views

Absolute Positioning with jQuery UI dialogs

I'm using a few jQuery UI modal dialogs and the positioning of each dialog is set to relative by default. This is causing me a few problems and I'd like to know if there's some way I can get the ...
Rahul Sekhar's user avatar
  • 2,831
2 votes
2 answers
9k views

Positioning a jQuery UI dialog offset from the Center

I'd like to position my jQuery UI dialogs a bit better. The default "center" position puts them directly in the middle of the page, but it certainly looks better to have them offset about 70% up the ...
Hawkee's user avatar
  • 2,027
12 votes
4 answers
16k views

Refresh jquery ui dialog position

I'm using a jquery dialog. The content of this dialog is dynamic so the height change when the dialog is open. $("#a_div").dialog({ width: 400 }); The dialog initially appears center in the page. ...
Luca Romagnoli's user avatar
42 votes
24 answers
144k views

jQuery UI dialog box not positioned center screen

I have a jQuery dialog box that is meant to position in the middle of the screen. However, it seems slightly off-center vertically. Here is the code: $('#add_box').dialog({ autoOpen: true, ...
David's user avatar
  • 16.6k