This is a migrated thread and some comments may be shown as answers.
window doesn't center
1 Answer 43 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
scorp
Top achievements
Rank 1
scorp asked on 24 Feb 2012, 05:26 PM
I am trying to load content in a window using the ajax call. However the window is not centered on open.

var
 win = $("#CreateUserWizard").tWindow({title:"My Window"}).data("tWindow");
    win.ajaxRequest('....url to form.....'); 
    win.center().open();

1 Answer, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 01 Mar 2012, 10:06 PM
I would have to "resize" the window when the content changed

$(win.element).find(".t-content").width('auto').height('auto');
Tags
Window
Asked by
scorp
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Share this question
or