 (defn- get-offset-position [node offset]
   (cond
     (number? offset)  offset
-    (string? offset)  (as-percentage (.innerHeight node) offset)
+    (string? offset)  (as-percentage (.-clientHeight node) offset)
     (fn? offset)      (offset node)
     :else             0))
 

       :component-will-mount
       (fn []
         (swap! waypoints assoc id {:options options}))
       :component-will-unmount
       (fn []
         (swap! waypoints dissoc id))

       :component-did-update reset-trigger-point!

       :reagent-render
       (fn [opts child-el]
         (reset! options opts)
         child-el)}))))

