fix scrolltoposition behaviour and new alignmentPanel api