Angus Leeming <[EMAIL PROTECTED]> writes:

| Alfredo Braunstein wrote:
| 
| > In a document full of previews, the size of the document changes when
| > mathed insets get replaced by preview snippets. This makes very
| > unconfortable to input (or even follow) text when the changes are being
| > made. The problem is not exclusive to previews, but also to other things
| > that could change size without user interaction. (for instance insertion
| > of latex error boxes).
| > 
| > The attached quick & dirty hack makes lyx respect the position in the
| > document by selecting a fixed text reference.
| > The behaviour is the following: the row where the cursor is remains fixed
| > with respect to the start of the screen. So you don't see on screen "from
| > y pixel coord 1000 from the start of the doc and below", but "from row y
| > and below". In fact pixel coord 1000 and below doesn't have much sense
| > anyway.
| > 
| > This is achieved by simply:
| > 
| > * rename LyXText::first_y to first_y_ and make it private.
| > * add a first_y() const method that returns first_y with some adjustment
| > * add a set_first_y(int newy) method
| 
| Why not call them first_row() and set_first_row(int newrow). It might help 
| future generations a little ;-)

Why have different names for them?

int first_row() const; 
void first_row(int newrow);

would suit me just fine.

-- 
        Lgb

Reply via email to