mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
recalculate faux grid offsets when browser is resized
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user