recalculate faux grid offsets when browser is resized

This commit is contained in:
vieron
2012-07-19 11:08:10 +02:00
parent 7e1e5e5217
commit b83d993d4b
2 changed files with 46 additions and 26 deletions

View File

@@ -34,7 +34,7 @@
this.original_coords = this.get();
};
fn.set = function(update) {
fn.set = function() {
var el = this.el;
if (el) {
this.data = el.offset();
@@ -66,7 +66,7 @@
var new_data = $.extend(this.data, data);
this.data = new_data;
}
this.set(true);
this.set();
return this;
};