Skip to content
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

SWT org.eclipse.swt.widgets.Menu: a very tall menu exceeding the screen when scrolled has the effect to blank the neighboring menus #2349

Open
backwindj opened this issue Oct 1, 2024 · 8 comments
Labels
bug Something isn't working Linux Happens on Linux

Comments

@backwindj
Copy link

Hello,

Issue description:
In a GUI application made with "Eclipse IDE for RCP and RAP Developers" on Linux Fedora 40, I have a menu attached to a tree. For one of the TreeItems, the menu has a very large number of MenuItems and consequently exceeds the screen height. For the next TreeItem, the menu has only four MenuItems. If I open and close the menus of these two TreeItems, the rendering of both is perfectly fine.

If I open the large menu then scroll inside it with the mouse to see off-screen MenuItems then close the large menu and then open the small menu next to it, the small menu is rendered as 4 four blank lines plus a top handle as if it was a menu exceeding the screen. If I scroll down long enough inside the small menu, the four expected MenuItems finally will appear, the top handle
is not shown any more and scrolling in the small menu has no effect any more.

I verified I can reproduce this issue against Eclipse Version: 2024-09 (4.33.0) Build id: 20240905-0614

I did not expect the small menu to be blank and to have to scroll inside it.

I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

Best regards,
François

@backwindj backwindj added the bug Something isn't working label Oct 1, 2024
@iloveeclipse iloveeclipse added the Linux Happens on Linux label Oct 1, 2024
@iloveeclipse
Copy link
Member

Screenshot would help. I believe it's a known GTK issue we reported some years ago to GTK, @trancexpress ?

@backwindj
Copy link
Author

Copie d'écran_20241001_220639

@backwindj
Copy link
Author

I will rework my menu to fit the screen.

@trancexpress
Copy link
Contributor

Screenshot would help. I believe it's a known GTK issue we reported some years ago to GTK, @trancexpress ?

We had/have: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564910

Without a video its hard to tell if its the same issue.

@backwindj
Copy link
Author

vokoscreenNG-2024-10-02_22-06-18.mp4

The issue is shown twice in this recording.

Best regards,
François

@trancexpress
Copy link
Contributor

We've not ran into this issue yet. If I find time I'll try to come up with a GTK3 repoducer. Maybe its again some weird combo behavior (menus share code with combo drop downs) that is supposed to make to make a combo entry easy to click (due to mouse pointer proximity)...

@trancexpress
Copy link
Contributor

I tried a few reproducers, I couldn't reproduce the problem with GTK3.

Next step here should be an SWT snippet that reproduces the problem, maybe with that we can reduce to a GTK3 snippet. I doubt its an SWT bug, I assume its some GTK3 bug.

@backwindj
Copy link
Author

Hello,

I have verified that the issue was not due to X11 but the behaviour is exactly the same with Wayland.

Best regards,
François

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Happens on Linux
Projects
None yet
Development

No branches or pull requests

3 participants