EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mshaffer on December 09, 2016, 11:07:31 PM



Title: onStopResize in easyui-window
Post by: mshaffer on December 09, 2016, 11:07:31 PM
I want to trigger
Code:
onStopResize: function(e){
                                     console.log(e);
  },


within an easyui-window ... I believe "window" depends on "resizable" so does that mean it inherits resizable events?

If not, how would I do this trigger?  I basically want to get the new width/height and update an element inside accordingly...


Title: Re: onStopResize in easyui-window
Post by: jarry on December 10, 2016, 05:53:04 AM
Please use the 'onResize' event instead.
Code:
$('#w').window({
  onResize: function(width,height){
    //...
  }
});