Monday, December 5, 2011
ColorBox Resize After Ajax Page Update
In an application that I'm developing I use ColorBox to display a modal dialog to edit a SQL record. When the edits are saved the Ajax result is used to display message to confirm that the record was edited. The inserted message causes the container inside the dialog box to expand beyond the current height. The solution is to adjust the dimensions of the box by calling "$.colorbox.resize();" when the post is completed.