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:
Brandon Aaron
2013-12-12 14:36:47 -05:00
parent 5aaaf69c5a
commit 17b6d369e3
+1 -1
View File
@@ -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) {