Bug 328685 - Scrollbar is broken when loading two files from sftp
Summary: Scrollbar is broken when loading two files from sftp
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 3.11.97
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-11 22:29 UTC by Albert Astals Cid
Modified: 2014-01-22 19:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Astals Cid 2013-12-11 22:29:07 UTC
When opening two long files from sftp, the second file (i.e. the one that is on focus while loading) gets the scrollbar correctly sized, but for the first one the scrollbar is not updated correctly until you edit the file and shows full (as if the document did fit into the viewport).

If you open files one at a time this does not happen.

Reproducible: Always
Comment 1 Michal Humpula 2013-12-13 12:48:59 UTC
Hi Albert,

I can't reproduce it with the info, so here are some additional questions. What scrollbar do you find not working corretly, the vertical or horizontal one? Is the sizing fixed, when you resize the window? How do you open files from sftp (when I'm accessing files over ssh I just use sshfs, so I'm not familiar with using sftp in kate)? Is it happening with local files too?
Comment 2 Albert Astals Cid 2013-12-13 12:52:58 UTC
(In reply to comment #1)
> Hi Albert,
> 
> I can't reproduce it with the info, so here are some additional questions.
> What scrollbar do you find not working corretly, the vertical or horizontal
> one? 
vertical

> Is the sizing fixed, when you resize the window? 
yes

> How do you open files
> from sftp (when I'm accessing files over ssh I just use sshfs, so I'm not
> familiar with using sftp in kate)? 
 * Open konqueror, write sftp://something_you_have_access_to in the url bar
 * highlight two files (ctrl+mouse_left_click for example)
 * Mouse Right click on one of the files, open with -> kate

> Is it happening with local files too?
No, that's why i mentioned sftp
Comment 3 Michal Humpula 2013-12-13 15:46:44 UTC
Thanks Albert, but still no confirmation on my side.

How big are the files (aprox)? Are you getting "The file ... is still loading" message? I was testing it agains local ssh, so maybe it's too fast on my side.

This one might seem stupid, but I need to be sure; what version is the kate? Is it compiled from the master branch from git repo? The version info in About dialog is useless.
Comment 4 Albert Astals Cid 2013-12-13 16:01:19 UTC
(In reply to comment #3)
> Thanks Albert, but still no confirmation on my side.
> 
> How big are the files (aprox)?
Not big, let's say 1000 lines at most

> Are you getting "The file ... is still
> loading" message? 
Yes

> I was testing it agains local ssh, so maybe it's too fast
> on my side.
Probably

> This one might seem stupid, but I need to be sure; what version is the kate?
> Is it compiled from the master branch from git repo? The version info in
> About dialog is useless.
I'm using the 4.12 RC (as defined by my version string) so i am using http://quickgit.kde.org/?p=kate.git&a=commit&h=aa242d8fc72159bf1f29acb86ead8ddc39106eb0
Comment 5 Albert Astals Cid 2014-01-22 19:52:01 UTC
Git commit 807cac0e3f0899eb46f12de4b7b546f6cee9fba8 by Albert Astals Cid.
Committed on 22/01/2014 at 19:50.
Pushed by aacid into branch 'KDE/4.12'.

Fix broken scrollbar when opening remote files

Acked by Christoph

FIXED-IN: 4.12.2
REVIEW: 115235

M  +1    -1    part/view/kateviewinternal.cpp

http://commits.kde.org/kate/807cac0e3f0899eb46f12de4b7b546f6cee9fba8
Comment 6 Albert Astals Cid 2014-01-22 19:54:02 UTC
Git commit 2b0c06866538adf3acf5a150c95c5fd4d9eff3d0 by Albert Astals Cid.
Committed on 22/01/2014 at 19:50.
Pushed by aacid into branch 'master'.

Fix broken scrollbar when opening remote files

Acked by Christoph

FIXED-IN: 4.12.2
REVIEW: 115235

M  +1    -1    part/view/kateviewinternal.cpp

http://commits.kde.org/kate/2b0c06866538adf3acf5a150c95c5fd4d9eff3d0