-
Notifications
You must be signed in to change notification settings - Fork 95
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
Fix pulse triggers #601
Fix pulse triggers #601
Conversation
… updates would not trigger a JavaFX pulse
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #601 +/- ##
============================================
- Coverage 49.72% 49.67% -0.06%
+ Complexity 6247 6241 -6
============================================
Files 379 378 -1
Lines 37625 37583 -42
Branches 6165 6158 -7
============================================
- Hits 18708 18668 -40
+ Misses 17687 17686 -1
+ Partials 1230 1229 -1
☔ View full report in Codecov by Sentry. |
Pull Request ReviewHey there! 👋 Here's a summary of the previous results for the pull request review: Changes
Suggestions
Bugs
ImprovementsOne place in the code that could be refactored for better readability is in the public StyleGroup(ObservableList<Node> children) {
children.add(StyleUtil.hiddenStyleNode(new Group()));
} This eliminates the need for the RatingOverall rating: 7.5/10 Criteria:
That's it for the summary! Let me know if you need any further assistance. 😄 |
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for following this up!
Contrary to what my previous testing showed, the pre/post layout hooks do not trigger a pulse. Those must have been caused by animations or other timers inside the apps I was testing with (sampler and some individual samples).
This caused some issues where concurrent updates would correctly register the hooks, but the chart would never get updated without something else triggering a pulse (e.g. mouse click, resize, etc).
PR changes:
layoutChildren
implementation. This triggers a pulse without forcing unnecessary work, i.e., it does not trigger a layout of the parent chart.