Skip to content
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

VSI: render views are restored with wrong size when switching views after resizing the VSI window #12616

Closed
mantid-builder opened this issue May 18, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@mantid-builder
Copy link
Collaborator

This issue was originally TRAC 11778

Original Reporter: @FedeMPouzols

  • Open the VSI and move the camera in the standard view.
  • Switch to a different view (the state of the standard view is saved) and resize the VSI window
  • Switch back to the standard view. You'll see it with the old size.

See how to best fix this.

A quick fix with repaint() calls did not seem do to the trick.


Keywords: VSI

@mantid-builder
Copy link
Collaborator Author

@FedeMPouzols (2015-05-18T09:16:04):
Curiously enough this doesn't seem to happen when switching back to the MultiSlice view which is apparently resized/re-rendered with the proper size. However the MultiSlice view seems to have different issues: http://trac.mantidproject.org/mantid/ticket/11781.

@AntonPiccardoSelg
Copy link
Contributor

The problem arises in the switchViews method https://github.com/mantidproject/mantid/blob/master/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/MdViewerWidget.cpp#L1046:L1097

Before switching the views we create a snapshot with the saveViewState method and apply an old view state to the new view via restoreViewState.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants