Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.1
-
-
fcba9fa861574f33e1d2e54d8c8d6da8062927cd (qt/qtbase/5.12)
Description
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.
Expected result:
The scrollbar should be adjusted so that there is smooth scrolling.
Note: Tried many things, but no help:
1. ed->document()>markContentsDirty(0,ed>document()->characterCount());
2. ed->viewport()>update(); // shows correctly but wheel does not scroll
3. static_cast<QPlainTextDocumentLayout *>(ed>document()>documentLayout())>requestUpdate();