forward port scrollpane improvements from v0.4