DolphinView: Reset scrollbars before changing view mode
The scrollbars are not reset when changing the view mode. This can cause the scroll area to be moved out of view making the view unusable. This MR resets the scrollbars to prevent such issues.
Also, commits d3839617 and 3bf471e0 introduced a few changes to requiredWidth calculation in some places. The calculation of requiredWidth has been made consistent across KItemListView in this MR.
Edited by Amol Godbole