If you want your graphs to resize when a dialog is resized the simplest way I've found to do it is to bind a window resize call to the dialog resize stop as follows:
Note: I'm binding the function to the dilogresizestop event with my namespace highchartGraphs so I can clean up just this function later.
Code: Select all
$j(masterDivRef).closest(":ui-dialog").bind('dialogresizestop.highchartGraphs',function(event,ui) {
$j(window).resize();
});
Code: Select all
$j(masterDivRef).closest(":ui-dialog").bind('dialogclose.removeGraphs',function(event,ui) {
$j(this).unbind('dialogresizestop.highchartGraphs');
});
-Ed