Fix vertical scrolling

The calculation of the scrolling position seems broken (scrolled into negative values before). This change uses the topology size instead.