src/backend/index.js
function scrollIntoView (instance) {
  const rect = getInstanceOrVnodeRect(instance)
  if (rect) {
    // TODO: Handle this for non-browser environments.
    window.scrollBy(0, rect.top + (rect.height - window.innerHeight) / 2)
  }
}
function scrollIntoView (instance) {
  const rect = getInstanceOrVnodeRect(instance)
  if (rect) {
    // TODO: Handle this for non-browser environments.
    window.scrollBy(0, rect.top + (rect.height - window.innerHeight) / 2)
  }
}
function scrollIntoView ( instance ) { const rect = getInstanceOrVnodeRect ( instance ) if ( rect ) { // TODO: Handle this for non-browser environments. window . scrollBy ( 0 , rect . top + ( rect . height - window . innerHeight ) / 2 ) } }
Sroll a node into view.

@param {Vue} instance
Sroll a node into view .