archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

Unable to resize objects on the edge of the viewport #932

Closed nilsivanson closed 1 year ago

nilsivanson commented 1 year ago

Version of Archi

5.0.2

Archi Plug-ins

coArchi 0.8.7.202212021111 coArchi Command Line 0.8.7.202212021111

Operating System

Linux. Debian 12 Bookworm with GNOME 43 on Wayland.

Expected Behaviour

It should be possible to resize all objects in a view

Actual Behaviour

Objects on the edge of a viewport are somtimes unable to be resized due to scrollbars overlapping the resize handles.

Steps to Reproduce the Behaviour

  1. Create a new view
  2. Put one object on the bottom so that the viewport is expanded
  3. Put another object on the right so that the viewport is expanded
  4. a) Attempt to resize the bottom object with one of the handles on the bottom of that object or b) Attempt to resize the rightmost object with one of the handles on the right of that object
  5. Watch the scrollbars overlap the handles and that you are unable to resize the object

Workaround

  1. Move the object around so that it is no longer near the edge
  2. Resize it
  3. Move it back

Or use MacOS where this works as expected.

Example video

See attached video Screencast from 2023-05-03 13-50-05.webm

Screencast from 2023-05-03 13-50-05.webm

Phillipus commented 1 year ago

There are problems with Eclipse and Linux Wayland - see https://www.archimatetool.com/faq/#linux-issues - please use X11. There is an Archi.sh file you can use that sets export GDK_BACKEND=x11

nilsivanson commented 1 year ago

Hi @Phillipus. Thanks for the reply.

I have now tried to run it with the GDK_BACKEND=x11 using the Archi.sh script and the issue is still there even when running with X11.

It seems to me as if the issue is not possible to work around by switching to X11.

Screencast from 2023-05-03 14-15-40.webm

nilsivanson commented 1 year ago

I found a workaround now in GNOME. Will open a PR to suggest including this in Archi.sh, if I find my way around the source code.

export GTK_OVERLAY_SCROLLING=0

More information available here: https://www.linuxuprising.com/2019/09/how-to-disable-gnomes-overlay.html

Screencast from 2023-05-03 14-20-07.webm

nilsivanson commented 1 year ago

I have searched through the source code but I am unable to find the Archi.sh or any of the contents of that file in the source code of this repository. I don't know how to proceed to open a pull request.

Phillipus commented 1 year ago

I have searched through the source code but I am unable to find the Archi.sh or any of the contents of that file in the source code of this repository. I don't know how to proceed to open a pull request.

I can add that, no need for a PR.

Phillipus commented 1 year ago

Each diagram view has a margin border of 5 pixels on each side. I experimented with changing it to 20 and that allows space for the scrollbar. I might add this as a user preference to set the border.

nilsivanson commented 1 year ago

Thank you @Phillipus!

Best regards, Nils

Phillipus commented 1 year ago

In the next version of Archi there will be a new Preference to set the margin width of a diagram:

margin

The default, as it is now, is 5. Increasing this value to, say, 18, allows more space around the diagram area for scroll bars.

I will also add export GTK_OVERLAY_SCROLLING=0 with a comment to the Archi.sh file. Thanks @nivanson for finding that.

Phillipus commented 1 year ago

This is in Archi 5.1 beta.