nroduit / Weasis

Weasis is a DICOM viewer available as a desktop application or as a web-based application.
https://nroduit.github.io
Other
830 stars 293 forks source link

Minitool width is bigger than expected when using a vertical layout. #558

Open liangaili opened 5 months ago

liangaili commented 5 months ago

Describe the bug. What happened?

Hi, I am using Weasis 4.4.0 on a vertical screen (1080x1920). To maximize the image area, I dragged the DICOM Explorer to the top of the image area.

However, the size of the Minitool area does not adjust properly when I resize the Weasis window.

Here is an image showing the Weasis window. You can see that the width of the Minitool area is small as expected.

1

If I maximize the Weasis window, the Minitool area also grows larger. (I suppose it should keep being small.)

2

I tried Weasis 4.3.0 on a Macbook, same thing happened.

What version of Weasis are you running?

4.4.0,4.3.0

On which system the problem occurs?

Windows, macOS

Relevant log output

No response

Additional contextual elements

No response

liangaili commented 5 months ago

I have some new findings, here is how I reproduce them:

A:

  1. open two dicom images
  2. drag dicom explorer, and adjust the interface look like this: (manually drag the minitool area wider than normal) 1
  3. close one of the opened dicom tabs
  4. the width of minitool area will become normal(to minimal width)

B: If the width growth is triggered by the method in original post, closing one of many dicom tabs also can make width normal

C: If I open dicom series, make width wider than normal(either manually adjust or maximize window), opening a new 3D viewer will make the width of minitool normal.

D: If I open dicom series, then open 3D viewer, then adjust width wider than normal(either manually or by maximize), switching from/to 3D viewer will also make the width of minitool normal.

nroduit commented 4 months ago

Moving the explorer or tools up or down is not recommended, as there are several display problems with the docking framework, which does not allow you to manage space redistribution in some cases.

If you need more horizontal space, it's best to use the panel's overlay mode (by minimizing and then clicking in the center of the button) or hide the explorer and use shortcut navigation.

I'm evaluating replacing the docking framework as it's no longer supported.

liangaili commented 4 months ago

Thank you for the reply, it seems like this is the only way.

Hope the replacement goes well.