Martin Vermeer wrote:
On Sun, Sep 16, 2007 at 11:35:09AM +0200, Abdelrazak Younes wrote:
Moreover, what var decides how the gray text background
is cut at the end of the doc ?
Yes, that is tricky. It's years ago that I looked at this :-(
I suspect it is in GuiWorkArea::setScrollbarParams():
// do what cursor movement does (some grey)
h += height() / 4;
Look at the end of BufferView::draw() to understand how the grey area
size is calculated.
Are you sure? I don't see any calculation, just decision logic.
Well, there is no real calculation, BufferView::draw() will just draw a
gray rectangle starting at the bottom of the last paragraph.
Yes, but the question was (as I understood it to mean): where is it
decided how big this rectangle will be, i.e., how far will the scrolling
go on when we run out of paragraphs ;-)
Ah... then yes you're right, it a combination of
GuiWorkArea::setScrollbarParams() and BufferView::scrollDocView().
Abdel.