-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalization doesn't move the viewport (#394) #395
Normalization doesn't move the viewport (#394) #395
Conversation
Don't forget to check the export of an image, because |
Export works, but good point to check other functionality. For example opening a file should still reset the viewport to top left. |
8e4f807
to
be663b6
Compare
Some minor things I found during testing:
|
I couldn't reproduce layout being loaded after the SaveAs action, but there were some inconsistent behaviour which now should be fixed |
@Atria1234 Could please rebase/merge with master? Currently it is way to messy for me to distinguish between changes in this PR and changes made in other PRs. Also I missed options to specify if if current zoom and current selection should be used on exported image. Maybe those are missing options in |
- LayoutVersion is loaded when layout is loaded - Change of layout version is undoable and therefor counts toward unsaved changes - Star is shown in the window title when there are unsaved changes
- rename converter in xaml to match existing variables (formatting is automatically done by EditorConfig) - use `EventHandler<T>` instead of custom delegate
…o objects were moved
- version didn't update after Save action - version didn't show up after SaveAs action
832bc02
to
559ee0b
Compare
I'll just rebase now, I'll check the zoom and selection export setting later |
Could you try to reproduce the problem with exporting current zoom and selected objects? Both seems to be working for me |
@Atria1234 Could you please double check if this still works as intended after my resent merge with master? |
Works, except when I tried to check the merge I noticed that MainWindow.WindowClosed is no longer called on Window's Closed event. Is that wanted behaviour? When I added it back it caused stack overflow exception, but stack was 4 level high, so I don't know what that causes. |
The |
I don't know, you added that event 😄 I guess it is a problem when the "another app running" window gets shown as part of the startup. But as far as this only happening when debugger is attached, I'd say it is pretty annoying. But does there even have to be the |
e156ee3
to
4e2a983
Compare
4e2a983
to
58011e8
Compare
I'm sorry, but if I'm merging it with the latest master it does not work. The viewport is always reseted. |
…wport-during-normalization
e78f384
to
135701c
Compare
I deleted the OnClosed event from MainWindow, since the shutdown mode is reset after the "multiple instance running" message is shown. |
Yes, that is expected behaviour. The issue I had with normalization after save was just that...if you were working on some south part of CF, saving would reset your viewport to the top left. Explicit requestion normalization still resets the viewport. Do you think that viewport should not be reset after requesting normalization? |
Ok, so I got this PR wrong.
I think leaving the behavior of |
LayoutVersion is loaded when layout is loaded
Change of layout version is undoable and therefor counts toward unsaved changes
Star is shown in the window title when there are unsaved changes
Check zoom and selection option for export