mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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(" ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user