Skip to content

Commit ecbf017

Browse files
committed
fixed: issue when resizing window, thx to crob611, see https://github.com/fnagel/jquery-ui/issues#issue/44
1 parent 201685d commit ecbf017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ $.widget("ui.selectmenu", {
211211
});
212212

213213
// needed when window is resized
214-
$(window).resize(function(){
215-
self._refreshPosition();
216-
});
214+
$(window).resize(
215+
$.proxy(self._refreshPosition, this)
216+
);
217217
},
218218
_init: function() {
219219
var self = this, o = this.options;

0 commit comments

Comments
 (0)