Restore grid view visible rect after editing cell. (Fixes #778)
Fix #777.