Page 1 of 1
Internal Viewer: scrollbar changes size during scrolling
Posted: 14 Feb 2006, 10:54
by Guest
In the text viewer, as you move up and down using say the mouse wheel the scrollbar on the right changes size as you move up and down which is probably not correct, especially towards the end of some files. Very small thing but could make the scrolling behave in odd ways sometimes.
Posted: 14 Feb 2006, 13:04
by Jan Rysavy
This is a feature rather then a bug. The size of scrollbar is computed by size of displayed text divided by total size of viewed file.
Scrollbar will be smaller when there is less text on the screen and bigger when there is more text displayed.
It is a way how the internal viewer works. It loads only needed parts of files so it can handle files with unlimited size. We want to rewrite this viewer (Unicode support), we can introduce some improvements for small files (read whole file into memory, compute line numbers, etc.).