-
-
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
Fix tooltips in CitationsDisplay #5188
Fix tooltips in CitationsDisplay #5188
Conversation
|
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.
Lgtm so far!
@@ -66,9 +66,9 @@ public String getContext() { | |||
|
|||
// Add three dots when the string does not contain all the line. | |||
return String.format("%s%s%s", | |||
(start > 0) ? "... " : "", | |||
(start > 0) ? "..." : "", |
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.
There is a Text overrun style for javafx
Not sure if this helps or not
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.
Not here, because the getContext()
method extracts a substring that always has the \cite
command in the middle. That is what is shown into the dashed box.
But is could be useful in the near future. Thanks!
* upstream/master: Bugfix/5045 : Modified the existing logic to comply crossref resolution with biblatex specification (JabRef#5086) Fix issue with missing year value in year column (JabRef#5197) Bump com.gradle.build-scan from 2.4 to 2.4.1 (JabRef#5199) Add citation commands to TexParser: autocite, blockcquote, and textcquote (JabRef#5195) Conversion of preferencesDialog/advancedTab, networkTab and groupsTab to mvvm (JabRef#5141) Fix Permissions of LaTeXintegration (JabRef#5134) Border for group color indicator and some space for tooltip (JabRef#5190) Fix issue 5152, tooltip and icon added to group cell (JabRef#5191) Fix tooltips in CitationsDisplay (JabRef#5188)
This patch solves the issue detected by @calixtus in #5002 (comment)
\cite
command in the tooltip.Moreover:
withTooltip(Callback<T, String>)
towithStringTooltip(Callback<T, String>)
inViewModelListCellFactory
.withTooltip(Callback<T, Tooltip>)
toViewModelListCellFactory
.Before:
After: