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

Tank: 'Horizontal' widget used space of 'vertical' #2807

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Sep 6, 2023

@tanviash provided an example display with a problem in the tank widget when in 'horizontal' mode.

Because of the way the widget was rotated, it would capture mouse clicks as if it was in the default, vertical orientation, ignoring the transformation that makes it appear horizontally.

For the attached display, trying to click on the Text Entry that's shown selected in the screenshot was impossible because the mouse click was captured by the tank widget that's shown above:

Screenshot 2023-09-06 at 11 08 25 AM

This might be a JavaFX error, but nevertheless prevented interacting with widgets that are 'below' the horizontal tank. Fixed by transforming the tank inside the pane instead of transforming the pane.

BrokenTank.txt

Because of the way the widget was rotated, it would capture mouse clicks
as if it was in the default, vertical orientation, ignoring the
transformation that makes it appear horizontally.
This might be a JavaFX error, but nevertheless prevented interacting
with widgets that are 'below' the horizontal tank.
Fixed by transforming the tank inside the pane instead of transforming
the pane.
@tanviash tanviash merged commit 0f8544e into master Sep 6, 2023
2 checks passed
@shroffk shroffk deleted the tank_horiz_fix branch December 15, 2023 16:31
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

Successfully merging this pull request may close these issues.

2 participants