{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBo
![Mac OS X - Docker Documentation](https://cdn-ak-scissors.b.st-hatena.com/image/square/d1b69a52ed7b06204942bcf236d441dff818bcd8/height=288;version=1;width=512/https%3A%2F%2Fdocs.docker.com%2Fimages%2Fthumbnail.webp)