Uncaught TypeError: e.getBoundingClientRect is not a function
Danjavia opened this issue · comments
Occur when i try to run
ramjet.transform( a, b );
Same problem for me.
Error:
TypeError: null is not an object (evaluating 'offsetParent.getBoundingClientRect')
Code:
let ramjet = require('ramjet'),
$ = require('jquery')
ramjet.transform($('.a').get(0), $('.b').get(0))
Tested in Safari and Chrome on OS X.
@electerious that might be because the element you selected doesn't have a parent, which means make sure you append the element to the page first.
@bfred-it The element is already on the page and has a parent.
Transforming to .fixedBasket__badge
works fine.
Can you please test if this is happening with the current master? it remember to have fixed it...
The code has changed. Can't reproduce it anymore, sorry. I guess it had something to do with position: fixed
of the fixedBasket
-element.
Don't worry! I was not sure to have fixed it ;-)