function () {
            if (!this.props.visible) {
                return;
            }

            var node = Preact.findDOMNode(this),
                selectedNode = $(node.parentNode).find(this.props.selectedClassName),
                selectionViewInfo = this.props.selectionViewInfo;

            if (selectedNode.length === 0) {
                return;
            }

            node.style.top = selectedNode.offset().top - selectionViewInfo.get("offsetTop") + selectionViewInfo.get("scrollTop") - selectedNode.position().top + "px";
        }
function () {
            if (!this.props.visible) {
                return;
            }

            var node = Preact.findDOMNode(this),
                selectedNode = $(node.parentNode).find(this.props.selectedClassName),
                selectionViewInfo = this.props.selectionViewInfo;

            if (selectedNode.length === 0) {
                return;
            }

            node.style.top = selectedNode.offset().top - selectionViewInfo.get("offsetTop") + selectionViewInfo.get("scrollTop") - selectedNode.position().top + "px";
        }
function ( ) { if ( ! this . props . visible ) { return ; } var node = Preact . findDOMNode ( this ) , selectedNode = $ ( node . parentNode ) . find ( this . props . selectedClassName ) , selectionViewInfo = this . props . selectionViewInfo ; if ( selectedNode . length === 0 ) { return ; } node . style . top = selectedNode . offset ( ) . top - selectionViewInfo . get ( "offsetTop" ) + selectionViewInfo . get ( "scrollTop" ) - selectedNode . position ( ) . top + "px" ; }
When the component has updated in the DOM, reposition it to where the currently
selected node is located now.
When the component has updated in the DOM reposition it to where the currently selected node is located now .
update selected node top