Page 1 of 1

TextViews 2 line down scrolling

PostPosted: Sat Jul 16, 2016 4:27 pm
by X512
If text line is written to bottom of log, it scrolls 2 line instead of 1. Also if keyboard down key is pressed in text, text scrolls 2 line when caret are at bottom of view. This is annoying and it will be good to fix it.

Re: TextViews 2 line down scrolling

PostPosted: Tue Jul 19, 2016 7:57 am
by Josef Templ
First of all, this behavior is not specific to the log window but appears with every text view
on various occasions.

It seems that this kind of scrolling is performed by a certain fixed amount of y coordinates.
Depending on the line height this results in two lines or three or 1 or 1.2345 lines.

I am afraid this behavior is not so easy to change but you can try.

- Josef

Re: TextViews 2 line down scrolling

PostPosted: Wed Jul 20, 2016 3:01 pm
by X512
First of all, this behavior is not specific to the log window but appears with every text view
on various occasions.

I know that. I give log as example.
Problem is in TextViews.StdView.ShowRangeIn. I did some tests and found that if font size is large, line with caret not become completely visible both for scrolling up and down. Also instead of view height frame bottom is used as bottom limit, I don't know why. If I make text view frame clipped, for example put to form so upper or lower part is not visible, scrolling down works, but scroll up doesn't.
Probably it will be good to rewrite that procedure.

Re: TextViews 2 line down scrolling

PostPosted: Thu Jul 21, 2016 7:46 am
by Josef Templ
Probably one reason for this fixed-step scrolling behavior is that it also works with embedded pictures
or other large embedded views. They can be scrolled partially e.g. with mouse wheel forward/backward instead of scrolling the whole line in all cases.

- Josef