Bug 195828 - KJots when inserting rule line scrollbar returns to startup position
Summary: KJots when inserting rule line scrollbar returns to startup position
Status: RESOLVED FIXED
Alias: None
Product: kjots
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stephen Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 23:18 UTC by Sergei Andreev
Modified: 2020-04-19 09:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Andreev 2009-06-09 23:18:09 UTC
Version:           4.2.4 (KDE 4.2.4) (using 4.2.4 (KDE 4.2.4), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.28-12-generic

1. Create a long Page - a scrollbar must appear.
2. Go to the end of the Page.
3. Insert Rule Line (horizontal bar).

Screen jumps to beginning of the page and you have to scroll to previous position manualy with mouse or hit Arror, Space or Enter buttons.

Very annoying behaviour when you editing/formatting some big note.
Comment 1 ese 2009-07-11 12:16:48 UTC
Yes you are right about this. the page should stop after the line instead of going to the start of of the page. I found out about this when i give it a try. Hope Steph would look on this.

ese
Comment 2 mierna 2011-08-31 12:00:53 UTC
The same happens to me. This bug was added almost a year ago, I still can reproduce it.
Comment 3 Andrew Crouthamel 2018-11-06 15:18:01 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-18 03:24:27 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Igor Poboiko 2020-04-19 09:23:40 UTC
Git commit 0e14353610fa7f121659fbe28dd764b6c2d6dc77 by Igor Poboiko.
Committed on 19/04/2020 at 09:23.
Pushed by poboiko into branch 'master'.

[KRichTextEdit] Fix scroll jumping around when horizontal rule is added

Summary:
Due to Qt bug 83605, it's not a good idea to `setTextCursor` while the cursor
is inside `beginEditBlock / endEditBlock` (scrollbar might jump to the top),
see KDE bug 195828. It's sufficient to move `setTextCursor` outside to fix it.
(it's never too late... :)

This patch also adds a test for this case (which currently fails due to
regression, see {D28819} and {D28964} for the fix).

Test Plan:
 1) Apply {D28964}
 2) `ctest`

Reviewers: #frameworks, dfaure

Reviewed By: dfaure

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D28966

M  +19   -0    autotests/krichtextedittest.cpp
M  +1    -0    autotests/krichtextedittest.h
M  +1    -1    src/widgets/krichtextedit.cpp

https://commits.kde.org/ktextwidgets/0e14353610fa7f121659fbe28dd764b6c2d6dc77