Open fakyras opened 4 years ago
Tagging @Zaid-Safadi because he introduced this bug with the presentation state displayed area viewport property and we have discussed it before.
There are multiple ways to solve this externally in the viewer and internally in the library as proposed here
I am happy to provide a fix that we agree on. I'll continue the discussion on the original thread to explore solutions.
I have been building an app for frontal/lateral chest x-rays, where mouse scrolling would switch between frontal and lateral - so a study would be treated similarly to CT scans.
The problem is that dimensions of frontal and lateral images usually do not match and this causes rendering issues:
Situation no1 - the first slice is frontal & the second - lateral:
scrolling to lateral slice:
==> the lateral image is not fully extended vertically
situation no2 - the first slice is lateral & the second - frontal:
scrolling to frontal slice:
==> although frontal fits vertically, it has been cropped to lateral image dimensions horizontally.
It seems the application gets stuck with the dimensions of the first slice it renders. The workaround I have at the moment is to have a button with reset function to be applied, i.e.:
But as you can imagine - this is not ideal.
I wonder if anyone had this similar issue before and how they have it resolved. Any help would be appreciated.