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

Csstudio 1338: ScaledSlider and Scrollbar Widgets Reflect Incorrect PV Value When Dragged Outside Limits #2385

Merged
merged 6 commits into from
Sep 14, 2022

Conversation

cjenkscybercom
Copy link
Contributor

Fixes #2376

@cjenkscybercom
Copy link
Contributor Author

cjenkscybercom commented Sep 14, 2022

Something really strange going on here with the commits...taking a look

@kasemir
Copy link
Collaborator

kasemir commented Sep 14, 2022

The commits appear to be the ones about the font fixes that have already been applied..

@cjenkscybercom
Copy link
Contributor Author

cjenkscybercom commented Sep 14, 2022

Hmm, I'm going to try pulling this all fresh, there's some changes that git diff should pick up on that aren't being picked up--never had this happen before! Either way, I still want to apply this work to the scrollbar widget as well anyway.

@cjenkscybercom
Copy link
Contributor Author

Alright @kasemir this should be good to go.
Just a last check -- and this is more for my JavaFX experience -- I don't believe we need to somehow unregister the setOnMouseRelease call, unlike the others where we are adding the listeners directly?

@kasemir
Copy link
Collaborator

kasemir commented Sep 14, 2022

I don't believe we need to somehow unregister the setOnMouseRelease call

I think that's correct. The JFX listeners don't need to be removed because the complete JFX scene graph gets disposed when we remove the representation.
For the listeners to our model we do remove the property listeners because otherwise we had memory leaks, or would call the listeners in the representation when the GUI was gone but the model still there.... but I can't right now point out exactly how that happened, because when you for example close a display then the model that was represented gets disposed, which should include the listeners.

@kasemir
Copy link
Collaborator

kasemir commented Sep 14, 2022

This is where we added the listener removal: kasemir/org.csstudio.display.builder#479

@kasemir kasemir merged commit ea02972 into master Sep 14, 2022
@kasemir kasemir deleted the CSSTUDIO-1338 branch September 14, 2022 15:31
@kasemir
Copy link
Collaborator

kasemir commented Sep 14, 2022

.. scrollbar widget as well ..

Excellent, thanks!

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.

CSSTUDIO-1338: ScaledSlider and Scrollbar Widgets Reflect Incorrect PV Value When Dragged Outside Limits
2 participants