Skip to content

Commit

Permalink
Merge pull request #5087 from IllianiCBT/spa_displayErrors
Browse files Browse the repository at this point in the history
Fixed SPA Tooltip HTML Wrapping in `PersonViewPanel`
  • Loading branch information
HammerGS authored Oct 21, 2024
2 parents f930cec + ac97987 commit 6112e9e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions MekHQ/src/mekhq/gui/view/PersonViewPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1448,9 +1448,8 @@ private JPanel fillSkills() {
IOption option = i.nextElement();
if (option.booleanValue()) {
JLabel lblAbility2 = new JLabel(Utilities.getOptionDisplayName(option));
lblAbility2.setToolTipText(wordWrap("<html>"
+ option.getDescription().replaceAll("\\n", "<br>")
+ "</html>"));
lblAbility2.setToolTipText(wordWrap(
option.getDescription().replaceAll("\\n", "<br>")));
lblAbility2.setName("lblAbility2");
lblAbility2.getAccessibleContext().getAccessibleRelationSet().add(
new AccessibleRelation(AccessibleRelation.LABELED_BY, lblAbility1));
Expand Down Expand Up @@ -1481,9 +1480,8 @@ private JPanel fillSkills() {

if (option.booleanValue()) {
JLabel lblImplants2 = new JLabel(Utilities.getOptionDisplayName(option));
lblImplants2.setToolTipText(wordWrap("<html>"
+ option.getDescription().replaceAll("\\n", "<br>")
+ "</html>"));
lblImplants2.setToolTipText(wordWrap(
option.getDescription().replaceAll("\\n", "<br>")));
lblImplants2.setName("lblImplants2");
lblImplants2.getAccessibleContext().getAccessibleRelationSet().add(
new AccessibleRelation(AccessibleRelation.LABELED_BY, lblImplants1));
Expand Down

0 comments on commit 6112e9e

Please sign in to comment.