avoid view jump to bottom on folding changes
Differential Revision: https://phabricator.kde.org/D17857