Register: Force scroll to the current row if the row height may have changed and pushed the current row out of sight.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18024 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Charles Day
2009-04-06 17:00:03 +00:00
parent 8493afcc37
commit 3b096be543
@@ -1111,6 +1111,18 @@ gnucash_sheet_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
gnc_item_edit_configure (GNC_ITEM_EDIT(sheet->item_editor));
gnucash_sheet_update_adjustments (sheet);
if (sheet->table)
{
VirtualLocation virt_loc;
virt_loc = sheet->table->current_cursor_loc;
if (gnucash_sheet_cell_valid (sheet, virt_loc))
gnucash_sheet_show_row (sheet,
virt_loc.vcell_loc.virt_row);
}
LEAVE(" ");
}