ubc-carnap-team / Rudolf

Truth Tree Widget for Carnap
2 stars 3 forks source link

position set to static if topItemsRef.current is undefined #75

Closed mbecker20 closed 4 years ago

mbecker20 commented 4 years ago

I realized there was actually this trivial fix. Initially rendering tree's position: 'static' places the tree following the flow of the flexbox, which is fine initially when the tree does not overflow. Subsequent interaction causes the ref.current to become defined, so positioning will switch to absolute, as is needed for scrolling to work correctly