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

awt menu goes out of the screen #116

Closed
oeway opened this issue Nov 10, 2020 · 1 comment
Closed

awt menu goes out of the screen #116

oeway opened this issue Nov 10, 2020 · 1 comment

Comments

@oeway
Copy link

oeway commented Nov 10, 2020

Hi, the awt menu (both menu and popup menu) can go out of the screen in both vertically and horizontally (see the issue here). A correct implementation should be:

  1. allow scrolling when the menu is too long
  2. when toughing the left or right border, keep the entire menu within the screen.

I tried to apply some css to fix it but couldn't get it to work, it might be easier to handle these issues directly from cheerpj.

@alexp-sssup
Copy link
Member

Endpoint https://cjrtnc.leaningtech.com/20201217/loader.js now has a mechanisms to reposition the popup windows to keep them in the screen. Scrolling to support displays which are too small for the popups is not something that native Java supports, so it falls outside of the scope of CheerpJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants