GNOME Bugzilla – Bug 687188
focus changes when resizing a sheet
Last modified: 2012-11-05 19:55:46 UTC
- open a new workbook - go to sheet3 - resize sheet3 - click OK => the focus is now on sheet1
That might be because all sheets are resized.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
The problem with the committed fix is that it only applies to the initial resizing. The focus changes unexpectantly on undo and redo of this action.
My bad.
I know how to fix this (at least I think I do) and will do so tonight.
The issues comes from update_after_action(), and this does not seem easy to fix. Restoring the sheet from cmd_resize_sheet_undo/redo does not work. We probably need an idle call.
I think there is a much simpler solution, we just need to pass the sheets in the correct ordering.
You are right, really fixed now.
I have just fixed a related issue, namely: make sure Sheet1 and Sheet2 have different sizes. select Sheet2 resize this Sheet to its current size applying the change to all sheets. before my commit the focus would change to Sheet1 (since Sheet2 would not end up in the list of sheets to adjust).