-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug] Image Wrong Size in the viewport #3520
Comments
@jbocce , how are you? Even with that tip, the error continues. Occurs most frequently in the 1x3 format with MR. |
Bill recently merged a fix for resize, maybe this is fixed now? |
So this is a tricky one, since we moved away from our previous setup where we re-created the viewports, and now the viewport (html div) would MOVE to the new location (for performance gain) and since there is no extra render, the camera is not changed. I don't think this is a sever problem, but if you think it is let us know |
So in tmtv mode for instance, if we move from one stage to another, the old viewport (image) sized is preserved as of the new way of assiging Ids to viewports and not index (React just moves the element and canvas to the next stage, which is really super performant, but comes at the cost that we get wrong size, and we should trigger a resize maybe after the layout change |
Hi |
We just release the OHIF 3.8, you can find more details here https://ohif.org/release-notes/3p8/ |
Describe the Bug
When loading a study, the images are the wrong size in the viewport.
Steps to Reproduce
Select the TCGA-QQ-A8VH study, select the 1x3 layout. Notice that the first viewport image displays the image at the wrong size (big). If you hit the "=" key, it makes the image the correct size. The same problem occurs if you double-click the image to get it to 1x1 format.
The right thing would be to put an option after opening the images to adjust the size in the viewport.

The current behavior
Note that the first image is the wrong size.

The expected behavior
The right thing would be to put an option after opening the images to adjust the size in the viewport.

OS
Windows 11
Node version
20.3.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: