Hello Jean-Marc, > There is a mechanism to avoid drawing rows when they are unchanged. Look > for this code in drawParagrph: > > // Row signature; has row changed since last paint? > row.setCrc(pm.computeRowSignature(row, bparams)); > bool row_has_changed = row.changed(); > > You can try to set row_has_changed to true and see whether it helps you.
As this also did not work for me I did not try the following. Following two are the most recent commits I have done and you can also see the output after the final commit. http://git.lyx.org/?p=gsoc.git;a=commitdiff;h=b673a5b0a650d19383ec836c693e72af3c432d71 http://git.lyx.org/?p=gsoc.git;a=commitdiff;h=refs/heads/scroll/testing > If this does, you can try to modify > ParagraphMetrics::computeRowSignature so that it takes in account the > row signature (please ask if you do not understand how this method works). I think that I can stop worrying about that because there is no scrolling for text sections. After the final test, now I am in a situation to identify whether the cursor lies in a math or not, and the position which the cursor lies in both Math and Tables (not in Text), after calling setTargetX(). Before that I was unable to get the correct position in pixels in Tables. I have a problem regarding the outcome. The current partial solution for Math has been implemented in such a way; when the cursor moves back from the right most edge in a too wide inset, the cursor remains at the right edge and the row slides right. Also if we select a left cell next to the cursor is in, that also make sliding to right. Are we going to follow the same pattern for this implementation? I think that makes editing a too wide row, hard. Thanks Hashini