问题
I have some heavy content inside UI dialog and need to resize it only once, at the end of the resize process. I need the behavior of the resizable when helper option is set for the dialog, so I can use 'stop' event to resize my content. There is same issue described here: jQuery forum
May be someone knows how to solve it.
回答1:
There is indeed an issue with the helper feature of the resizable widget. You can work around it by destroying the widget, then recreating it with the appropriate helper option immediately afterwards:
$("#yourDialog").dialog({
// options...
}).dialog("widget").resizable("destroy").resizable({
helper: "ui-resizable-helper"
});
You will find an updated fiddle here.
来源:https://stackoverflow.com/questions/11100870/jquery-ui-dialog-resize-helper