Skip to content

Commit

Permalink
Fix SW Tooltip box size.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Feb 6, 2024
1 parent 006ccf7 commit 86f28f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public SupportPowerTooltipLogic(Widget widget, TooltipContainerWidget tooltipCon
var level = sp.GetLevel();
var nameText = sp.Info.Names.First(ld => ld.Key == level).Value;
nameLabel.GetText = () => nameText;
var nameSize = nameFont.Measure(nameLabel.Text);
var nameSize = nameFont.Measure(nameText);
var descText = sp.Info.Descriptions.First(ld => ld.Key == level).Value.Replace("\\n", "\n");
descLabel.GetText = () => descText;
var descSize = descFont.Measure(descLabel.Text);
var descSize = descFont.Measure(descText);
var timeText = sp.TooltipTimeTextOverride();
if (timeText == null)
Expand Down

0 comments on commit 86f28f9

Please sign in to comment.