65. And beware of
the libraries you
are using
packages/react-select/src/animated/transitions.js
81
82
83
…
84
85
JavaScript Showing the top two matches Last indexed on May 27, 2019
docs/App/Sticky.js
43
44
…
78
79
80
81
7 code results in JedWatson/react-select
or view all results on GitHub
Here we're invoking requestAnimationFrame with a callback
invoking our
call to getBoundingClientRect and setState in order to
resolve an edge case
around portalling. Certain portalling solutions briefly
remove children from the DOM
before appending them to the target node. This is to avoid
us trying to call getBoundingClientrect
while the Select component is in this state.
const offsetBottom = 88; // footer height
const { top: outerTop } = this.outerEl.getBoundingClientRect
();
const availableHeight = window.innerHeight;
let { height, width } = firstChild.getBoundingClientRect();
let scrollHeight;