File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 100
100
* @param {Array } [options.resize.max_size] Limit widget dimensions
101
101
* when resizing. Array values should be integers:
102
102
* `[max_cols_occupied, max_rows_occupied]`
103
+ * @param {Function } [options.resize.start] Function executed
104
+ * when resizing starts.
105
+ * @param {Function } [otions.resize.resize] Function executed
106
+ * during the resizing.
107
+ * @param {Function } [options.resize.stop] Function executed
108
+ * when resizing stops.
103
109
*
104
110
* @constructor
105
111
*/
1043
1049
} ) . appendTo ( this . $el ) ;
1044
1050
1045
1051
this . $resized_widget . addClass ( 'resizing' ) ;
1052
+
1053
+ if ( this . options . resize . start ) {
1054
+ this . options . resize . start . call ( this , event , ui , this . $resized_widget ) ;
1055
+ }
1046
1056
} ;
1047
1057
1048
1058
1069
1079
'min-height' : ''
1070
1080
} ) ;
1071
1081
} , this ) , 300 ) ;
1082
+
1083
+ if ( this . options . resize . stop ) {
1084
+ this . options . resize . stop . call ( this , event , ui , this . $resized_widget ) ;
1085
+ }
1072
1086
} ;
1073
1087
1074
1088
/**
1135
1149
} ) ;
1136
1150
}
1137
1151
1152
+ if ( this . options . resize . resize ) {
1153
+ this . options . resize . resize . call ( this , event , ui , this . $resized_widget ) ;
1154
+ }
1155
+
1138
1156
this . resize_last_sizex = size_x ;
1139
1157
this . resize_last_sizey = size_y ;
1140
1158
} ;
You can’t perform that action at this time.
0 commit comments