Andre Poenitz wrote: >> > But I just noticed we need to a bit more careful: If an inset is not >> > visible anymore (because the user scrolled down) it keeps its xy chace >> > with bogus values... >> >> Ugh... > > We need the notion of 'visible paragraphs of main text'. > BufferView::updateInset() would benefit from it as well... > > Should not be hard: A pair of ParagraphList::iterators build by summing > up a few y values around bv->text->cursorPar()...
Why don't we set them up in the draw() stage? This is where the correct cache positions get computed anyway. Alfredo
