You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When opening a DICOM file on a mobile device, the image is calculated with the initial space for width and height. If there is more space available (e.g. when you collapse the navigation bar or rotate your screen to landscape), the image stays the same (small) size although there is a lot of black space around it.
In landscape mode, reloading the page does help, but the navigation bar is expanded again and consumes space which the image cannot use.
To Reproduce
Steps to reproduce the behavior:
Open a .dcm file on a mobile device or with the responsive mode of the browser.
Use a small device like an iPhone 11 Pro.
Collapse the sidebar.
(Optional, but great evidence): Rotate to landscape.
Problem: The image stays the same size as when the page was loaded.
(Optional, but great evidence): in desktop responsive mode, start with a small / big screen and resize to the opposite big / small screen: the image does not adjust width and height according to the available space.
Expected behavior
The image resizes according to the actual available space, especially when the sidebar is collapsed or the device is rotated.
Screenshots
Start screen in portrait:
Collapsing the sidebar does not resize the image:
Going into landscape doesn't resize the image:
After reloading in landscape, the image has more space:
Client details:
OS: MacOs Sonoma 14.6.1
Browser: Safari 17.6, Firefox 128.0b9 (64-bit) (on desktop in responsive mode)
Device: iPhone SE 2nd, iPhone 12 Pro
Server details
DICOM viewer app version: 2.1.2
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: Nextcloud Hub 8 (29.0.1)
Logs
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered:
I think there is the ReactResizeDetector used in the lines of the acanio-viewer which are responsible for this image, but I'm not sure why it is not working properly (or maybe it is and I don't understand it correctly.)
Describe the bug
When opening a DICOM file on a mobile device, the image is calculated with the initial space for
width
andheight
. If there is more space available (e.g. when you collapse the navigation bar or rotate your screen to landscape), the image stays the same (small) size although there is a lot of black space around it.In landscape mode, reloading the page does help, but the navigation bar is expanded again and consumes space which the image cannot use.
To Reproduce
Steps to reproduce the behavior:
.dcm
file on a mobile device or with the responsive mode of the browser.width
andheight
according to the available space.Expected behavior
The image resizes according to the actual available space, especially when the sidebar is collapsed or the device is rotated.
Screenshots
Start screen in portrait:
Collapsing the sidebar does not resize the image:
Going into landscape doesn't resize the image:
After reloading in landscape, the image has more space:
Client details:
Server details
DICOM viewer app version: 2.1.2
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: Nextcloud Hub 8 (29.0.1)
Logs
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: