-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Colouring item count in groups panel does not work reliably #3112
Comments
@tobiasdiez In order to make addressing this bug a little easier, could you please point me to the code that does the coloring of the group tree? I have a hard time locating it at the moment. |
@lenhard The coloring is determined by pseudo classes that are bound to the anySelectedEntriesMatchedProperty/allSelectedEntriesMatchedProperty of the groups node view model. |
The bug still exists in recent master branch, I fixed this bug in this [commits] (springzfx@a907fb6) The cause of this bug is that the local variable "pseudoClassState" is garbaged by java gc. There is no reference to this variable except an weak one from "bind" function. |
@springzfx thank you very much! Please create a PR for your changes, so we can integrate it. |
Does the same apply with toggle buttons like entry preview? I have disabled it and still the previews open on a single click. To reproduce it, the bottom details layer needs to be disabled. |
Thanks to @springzfx this issue is now resolved in the latest master version. We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version. |
JabRef 5.0-dev--snapshot--2018-10-28--master--05047f32a This bug has been partially solved. If you repeat the following steps you can still reliably reproduce the bug:
So, problem 2 has been solved, but problem 3 persists. There is a simple workaround for problem 3, though: If you select another group in the groups panel or another item in the main table and the select the newly assigned item, all (!) corresponding groups will be coloured. |
Fixes #5327. The problem was that `getTreeTableRow.getItem()` in `ViewModelTreeTableCellFactory` still returned the old item (and not the new one passed as method argument to `updateItem`). Since I was already looking at the code, this PR also fixes #3112 that improves the coloring after an entry was added to the group.
Shoud be fixed now in latest master. I cannot longer reproduce it. We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version. |
JabRef 5.0-dev--snapshot--2019-09-18--master--1601770f4 I can confirm that this issue is fixed in the latest dev version. Cheers! |
JabRef 4.0-dev--snapshot--2017-08-16--maintable-update--69f717336
Windows 10 10.0 amd64
Java 1.8.0_141
When selecting an item in the main table, the associated group (or rather the number giving the number of associated items) should be coloured. This is not the case with newly assigned items. It does appear, however, that this feature is generally buggy - also items that have not been newly assigned to a group are not always coloured in the group panel (sometimes it works, sometimes it does not).
It's difficult for me to replicate this behaviour. As far as I can tell, one way of experiencing reliably this bug is by doing the following.
Note, that I've also noticed that colours can "persist" in the main table, although no or only one item is selected. Example:
The text was updated successfully, but these errors were encountered: