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

cannot resize window, shrinking camera side #1588

Open
tomse opened this issue Sep 15, 2023 · 5 comments
Open

cannot resize window, shrinking camera side #1588

tomse opened this issue Sep 15, 2023 · 5 comments

Comments

@tomse
Copy link

tomse commented Sep 15, 2023

Read This First

Issues must only be opened once they are confirmed.
Please visit the discussion group first, so bugs or missing features can be separated from other problems.

To submit an issue for OpenPnP you must use this template or it will be deleted. Please fill out either the Problem Report or Feature Request section below and delete the other section.


Problem Report

Describe the Issue

Cannot resize the windows -> shrinking the camera side

Steps to Reproduce

How can a developer reproduce the issue you are experiencing? Use a step by step format like this:

  1. Start OpenPnP
  2. Move separator slider between config side and camera side towards the right
  3. Close OpenPnP
  4. Try moving the same slider to the left, enlarging the config side, shrinking the camera side

It seems to save the position of the slider when OpenPnP closes, and sets a lock on that position

Expected Result

Moving the slider should resize both sides of the slider

Actual Result

Moving the slider to the left is not possible.. it's "stuck"

Notes, Log Files, Screen Captures, Videos, etc. to Show the Issue

The more information you can provide about the issue the more likely it is that a developer will be able to respond.

Video of the slider stops trying to move to the left
https://youtu.be/6iu8SAKTY5Q

Whenever possible, please use the Menu -> Help -> Submit Diagnostics feature and include the URL here. Submit Diagnostics makes it easy to include log files, screen capture, debug images, configuration files, etc.

It was not possible to send log files - pastebin error occured with a long url (maybe a bug/api change?)


@tonyluken
Copy link
Collaborator

I haven't been able to duplicate the issue with the latest Test branch on Windows 10. What version of OpenPnP are you running and on what OS?

@tomse
Copy link
Author

tomse commented Sep 18, 2023

Running Win 10 22H2

And the latest stable link from the official website (https://s3-us-west-2.amazonaws.com/openpnp/OpenPnP-windows-x64-develop.exe) downloaded 1-2 weeks ago (sorry don't have access to the setup until tomorrow, can't give you a version number atm.

@markmaker
Copy link
Collaborator

It is a known bug, or perhaps "inconsistency", i.e. I guess there is some code in there giving the camera side a certain percentage of the width, once granted.

There is a workaround: you can shrink the whole application window, which will force the camera side smaller. Once you're happy, enlarge the main window again. I guess this workaround is the reason is hasn't been fixed yet, i.e., those knowing the trick no longer complain. 😏

Unfortunately, I'm not at all familiar with Java Swing layouting, and haven't found (and much searched for) the culprit yet.

Somebody? 💯 🥇

_Mark

@tomse
Copy link
Author

tomse commented Sep 20, 2023

Thank you, I did shrink the whole window, close and reopen the program - I think I got a hint on a similar problem in the google mailing lists when I did extensive search on the issue.

knowing the trick helps :-)

I did get a useful answer, but I don't know if the ticket should remain open - I'll leave that up to you :-)

@markmaker
Copy link
Collaborator

Yes we'll leave it open.

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

3 participants