Skip to content

Commit 7aa79f8

Browse files
author
Buck Ryan
committed
call resizable.stop whether the item was resized or not
1 parent 561b60f commit 7aa79f8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/angular-gridster.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1174,11 +1174,8 @@
11741174
item.setSizeY(item.sizeY);
11751175
item.setSizeX(item.sizeX > gridster.columns ? gridster.columns : item.sizeX);
11761176

1177-
var itemResized = (originalWidth !== item.sizeX || originalHeight !== item.sizeY);
1178-
11791177
scope.$apply(function() {
1180-
// callback only if item really changed size
1181-
if (itemResized && gridster.resizable && gridster.resizable.stop) {
1178+
if (gridster.resizable && gridster.resizable.stop) {
11821179
gridster.resizable.stop(e, $el, itemOptions); // options is the item model
11831180
}
11841181
});

0 commit comments

Comments
 (0)