mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
offsetParent was not added until 1.2.6 and should probably continue support for 1.2.2 since this is going to be a bug fix release
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
},
|
||||
|
||||
getLineHeight: function(elem) {
|
||||
return parseInt($(elem).offsetParent().css('fontSize'), 10);
|
||||
return parseInt($(elem)['offsetParent' in jQuery.fn ? 'offsetParent' : 'parent']().css('fontSize'), 10);
|
||||
},
|
||||
|
||||
getPageHeight: function(elem) {
|
||||
|
||||
Reference in New Issue
Block a user