If user call setvisible(false) to some of the blocks (say 100 to 200), scroll bars are not adjusted automatically.
Steps to reproduce:
- Execute the attached project.
- Click the hide button, and then scroll down.
- A Sudden jump is seen in scrollbar when we reach line 99.
The scrollbar should be adjusted so that there is smooth scrolling.
Note: Tried many things, but no help:
2. ed->viewport()>update(); // shows correctly but wheel does not scroll
3. static_cast<QPlainTextDocumentLayout *>(ed>document()>documentLayout())>requestUpdate();