-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix #15397 invisible delete area for internal CSL styles #15399
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
Merged
Siedlerchr
merged 9 commits into
JabRef:main
from
Francis-Lee-210:fix-15397-internal-csl-delete
Apr 12, 2026
+20
−10
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2898a4a
Fix invisible delete button for internal CSL styles
Francis-Lee-210 5f23cc4
Add changelog entry for internal CSL delete fix
Francis-Lee-210 55e1d1f
Fix import order in StyleSelectDialogView
Francis-Lee-210 affabb0
Use ValueTableCellFactory for CSL delete cell
Francis-Lee-210 693b03a
Merge branch 'main' into fix-15397-internal-csl-delete
Francis-Lee-210 e5b1a59
Merge branch 'main' into fix-15397-internal-csl-delete
subhramit a665b63
Fix CSL delete cell tooltip reuse and click handling
Francis-Lee-210 401fd47
Merge branch 'main' into fix-15397-internal-csl-delete
Francis-Lee-210 b2a85d4
Avoid dead zone in internal CSL delete column
Francis-Lee-210 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,14 +127,15 @@ protected void updateItem(T item, boolean empty) { | |
| } | ||
| if (toTooltip != null) { | ||
| String tooltipText = toTooltip.apply(rowItem, item); | ||
| Tooltip cellTooltip = null; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why rename
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wants to makes it clear this is the tooltip object to apply to this cell, not the factory field. |
||
| if (StringUtil.isNotBlank(tooltipText)) { | ||
| Screen currentScreen = Screen.getPrimary(); | ||
| double maxWidth = currentScreen.getBounds().getWidth(); | ||
| Tooltip tooltip = new Tooltip(tooltipText); | ||
| tooltip.setMaxWidth(maxWidth * 2 / 3); | ||
| tooltip.setWrapText(true); | ||
| setTooltip(tooltip); | ||
| cellTooltip = new Tooltip(tooltipText); | ||
| cellTooltip.setMaxWidth(maxWidth * 2 / 3); | ||
| cellTooltip.setWrapText(true); | ||
| } | ||
| setTooltip(cellTooltip); | ||
| } | ||
|
|
||
| if (contextMenuFactory != null) { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
event.consume()is currently executed for all clicks on the delete column cell, including internal styles and non-primary buttons. This prevents the event from bubbling to the row handler (used for double-click selection) and can create a “dead zone” where clicking the (empty) delete column for internal styles won’t select/activate the row. Consider only consuming the event when actually performing the delete (external style + primary click), and letting other clicks propagate normally.