Bug 382405 - vertical scrollbar occasionally not rendering properly
Summary: vertical scrollbar occasionally not rendering properly
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.36.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 398749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-07-16 16:34 UTC by ferar achkar
Modified: 2021-07-12 04:33 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screen shot of kdevelop editor with wrongly rendered vertical scroll bar (288.04 KB, image/png)
2017-07-16 16:34 UTC, ferar achkar
Details
kdevelop_not_able_use_as regular_scrollbar.png (254.52 KB, image/png)
2017-07-17 02:09 UTC, ferar achkar
Details
kdevelop_ok_scrollbar.png (357.38 KB, image/png)
2017-07-17 02:09 UTC, ferar achkar
Details
BUG_ON.png (270.39 KB, image/png)
2017-07-17 21:09 UTC, ferar achkar
Details
same_after_reload.png (354.24 KB, image/png)
2017-07-17 21:09 UTC, ferar achkar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ferar achkar 2017-07-16 16:34:57 UTC
Created attachment 106667 [details]
screen shot of kdevelop editor with wrongly rendered vertical scroll bar

vertical scrollbar on kdevelop 5.1.1 occasionally not rendering properly. Sometime reloading the current file (viewed) fixes the issue.
Comment 1 Sven Brauch 2017-07-16 20:55:20 UTC
Hmm, sorry, what's wrong here?
Comment 2 ferar achkar 2017-07-17 02:09:21 UTC
Created attachment 106674 [details]
kdevelop_not_able_use_as regular_scrollbar.png

Since you are asking,  not sure if this counts as a bug or rather a 
built-in intended feature. Nevertheless attached to screen shots from 
same kdevelop (5.1.1 on Ubuntu Mate 64 bit) one that the preview scroll 
extends from top to bottom (ok one?!), the other preview stops somewhere 
in the middle, and can not use it as regular scrollbar, i.e. clicking 
near the bottom of the scrollbar does nothing (unlike regular scrollbar 
behavior)



On 2017-07-16 04:55 PM, Sven Brauch wrote:
> https://bugs.kde.org/show_bug.cgi?id=382405
>
> --- Comment #1 from Sven Brauch <mail@svenbrauch.de> ---
> Hmm, sorry, what's wrong here?
>
Comment 3 ferar achkar 2017-07-17 02:09:24 UTC
Created attachment 106675 [details]
kdevelop_ok_scrollbar.png
Comment 4 Sven Brauch 2017-07-17 07:50:40 UTC
This is intended behaviour: when the file is not so long, the preview on the scrollbar is only rendered over part of it, otherwise it looks weird. The unused part of the scrollbar is then not usable -- it would be strange if clicking onto it would jump somewhere, because where would it jump to?
Comment 5 ferar achkar 2017-07-17 21:09:35 UTC
Created attachment 106685 [details]
BUG_ON.png

very well. If not mistaken, then this intended feature should not have 
dual behavior for the same file? I.e., when viewing the same file, 
vertical scrollbar should be rendered same way. Unlike current kdevelop 
5.1.1, were first rendering after initial starting of kdevelop 
(BUG_ON.png) != the other after doing a file reload (F5).

Have to say it is neat feature, though prefer if the vertical scrollbar 
render/behave as regular vertical scrollbar, yet when hovering the mouse 
cursor over it shows the mini preview, would be great to have some 
personalization of this feature.

thank you.


On 2017-07-17 03:50 AM, Sven Brauch wrote:
> https://bugs.kde.org/show_bug.cgi?id=382405
>
> Sven Brauch <mail@svenbrauch.de> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |RESOLVED
>           Resolution|---                         |INVALID
>                   CC|                            |mail@svenbrauch.de
>
> --- Comment #4 from Sven Brauch <mail@svenbrauch.de> ---
> This is intended behaviour: when the file is not so long, the preview on the
> scrollbar is only rendered over part of it, otherwise it looks weird. The
> unused part of the scrollbar is then not usable -- it would be strange if
> clicking onto it would jump somewhere, because where would it jump to?
>
Comment 6 ferar achkar 2017-07-17 21:09:36 UTC
Created attachment 106686 [details]
same_after_reload.png
Comment 7 Sven Brauch 2017-07-17 21:11:26 UTC
Oh, attachment 106685 [details] indeed looks like a bug. The file is long and the scrollbar should be fully used (as it is after pressing F5). I've never seen this behaviour myself, but I'll move this to the ktexteditor project, where it belongs.
Comment 8 Alexander Mentyu 2017-08-16 13:14:41 UTC
Confirming this bug

Qt Version: 5.9.1
Frameworks Version: 5.36.0
Operating System: Linux 4.9.40-1-MANJARO x86_64
Distribution: "Netrunner Rolling"
Driver: xf86-video-intel 1:2.99.917+777+g6babcf15-1 
Video card: Intel 4500MHD
Screen: 1366x768
Comment 9 Kåre Särs 2017-08-17 05:23:19 UTC
Hi,

I think this might be a timing problem. There are timers to start the update of the mini-map and now it seems that there has been an update while the view is still small and then the view resize is not noticed properly... :(

Are you able to (reliably?) reproduce the situation?

Something like: "Starting with a session with a lot of documents open" or something similar....
Comment 10 Alexander Mentyu 2017-08-17 06:00:54 UTC
(In reply to Kåre Särs from comment #9)
> Hi,
> 
> I think this might be a timing problem. There are timers to start the update
> of the mini-map and now it seems that there has been an update while the
> view is still small and then the view resize is not noticed properly... :(
> 
> Are you able to (reliably?) reproduce the situation?
> 
> Something like: "Starting with a session with a lot of documents open" or
> something similar....

I was able to reproduce this bug for a couple of times - it's reproducible ~1 out of 5 or 10 times.

4 tabs were opened - 2 tabs with long files, 1 tab with file that fits into screen vertically without scrolling (768px device) and 1 tab was empty 'Untitled' tab.

Vertical scrollbar not expanded in tab with long file when focus switched to it not after clicking on it - but after closing of previous 'Untitled' tab.
Comment 11 Christoph Cullmann 2019-08-25 10:24:16 UTC
*** Bug 398749 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Cullmann 2021-06-12 18:43:05 UTC
I could not reproduce this in a long time and have this always enabled.
If one finds a way to reproduce this with recent versions, please provide some hints and reopen, thanks!
Comment 13 Bug Janitor Service 2021-06-27 04:33:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2021-07-12 04:33:40 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!