jquery - dialog not working as properly after JqueryUI1.9.2 upgrade -


initialization used work before upgrade, statement alters dialog div width , dialog opens improper width. (jquery version using 1.10.2 jqueryui 1.9.2 )

function showadvsearch() { var titletext = 'search'; var divadvsearch = $(getdivadvsearch());  setwidthheightofsearchdiv();  // sets hight , width of grid 670x480  divadvsearch.css('overflow-x', 'auto'); divadvsearch.css('overflow-y', 'auto'); divadvsearch.dialog({ autoopen: false });  // problem here   divadvsearch.dialog("option", { modal: true, title: titletext, maxwidth: 1247, maxheight: 1000,     resizestop: function(event, ui) {         setwidthheightofsearchdiv();     },     dragstop: function(event, ui) {     } }); 

after code passes initialization (divadvsearch.dialog({ autoopen: false }); ) width of div becomes 50px reason. changed after upgrade, read documentation , upgrade guide not find anything.

update : debugged through ui library , found out following statement causing problem :

$.data( this, fullname, new object( options, ) );

when saves data resets width of grid.

solved, had update jqueryui css accordingly , initialize dialog once again in code (which weird works).


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -