Commit 62bdefb
committed
Scroll to bottom after adding follow‑up widget
When a follow‑up widget was appended to the message layout the view
did not automatically scroll to the new content.
The change now calls `scrollToBottom()` from `createFollowUpWidget` and
defers the actual scroll action with `QTimer::singleShot(100)`.
This gives the layout time to finish rendering before the scrollbar is
updated, ensuring the latest message is visible immediately and
eliminating jitter when the editor is first opened or after a rapid
series of messages.
Also updated the implementation of `scrollToBottom()` to use the
timer instead of setting the scrollbar value directly.1 parent d7c0230 commit 62bdefb
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
515 | | - | |
516 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
517 | 522 | | |
518 | 523 | | |
519 | 524 | | |
| |||
0 commit comments