Explorar o código

Fix exception in $.scrollParent

Thibaut Courouble %!s(int64=9) %!d(string=hai) anos
pai
achega
55de422d55
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      assets/javascripts/lib/util.coffee

+ 1 - 1
assets/javascripts/lib/util.coffee

@@ -157,7 +157,7 @@ $.offset = (el, container = document.body) ->
 $.scrollParent = (el) ->
   while el = el.parentElement
     break if el.scrollTop > 0
-    break if getComputedStyle(el).overflowY in ['auto', 'scroll']
+    break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']
   el
 
 $.scrollTo = (el, parent, position = 'center', options = {}) ->