Hello asies,
When you are using ‘setContent’ you set the new window content so if you want to have Ok button when you re-open the window you can include button with the new content. Here is an example:
$('#showWindowButton').click(function () {
$('#jqxwindow').jqxWindow('open');
$('#jqxwindow').jqxWindow('setContent', 'Sample content<br /><input type="button" value="Ok" id="jqxButton2" />');
});
Scrollbars appear when content overflows. If you want to set ‘height’ property to “auto” you should select which HTML element to place in a window, because for example DIV tags are not auto-sized. DIV tags are usually stretched horizontally. I hope it would be helpful.
Best Regards,
Nadezhda
jQWidgets team
http://www.jqwidgets.com/