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

Fullscreen mode or window resize #78

Open
sebhaase opened this issue Feb 26, 2020 · 3 comments
Open

Fullscreen mode or window resize #78

sebhaase opened this issue Feb 26, 2020 · 3 comments

Comments

@sebhaase
Copy link

I have a Java app where the window (I assume its using Swing) gets cut off at the bottom. When I increase the parameters given in cheerpjCreateDisplay(1280,760) I get more white space around the Java window inside the CheerpJ frame, but it stays cut off at the same size as before. Is the a way to tell the window to go fullsize or to have it get a resize event/trigger.

@alexp-sssup
Copy link
Member

You should be able to resize the window manually, and the window should also properly resize if you programmatically resize it from the Java side. Does any of this solutions work?

@sebhaase
Copy link
Author

Manual resizing does in fact help (Thanks!).
I do not have access to the Java source code - I have only the jar-file. So I was hoping the CherpJ runtime API would allow me to programmatically resize the window from the Javascript side. Is that possible? (Manual resizing would be quite difficult to explain to the users!)

@alexp-sssup
Copy link
Member

No, at this time there is no API to achieve that. Eventually we plan to add a standard "Maximixe" control to the window bar, but we don't have a timeline for this feature right now. Please understand that we are a small company and we need to prioritize feature requests coming from our commercial users.

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