summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTryTwo <taolas@gmail.com>2025-10-16 15:58:32 -0700
committerTryTwo <taolas@gmail.com>2025-10-16 15:58:32 -0700
commit2bc944e1a3c974bea031cd1b2c4dd7257deca2da (patch)
tree2cff25b03be7b355b1b1808c672999499477c6ed /Source/Core
parente8d9c124e5290c9c02c16d83583ce82b4e57c0f2 (diff)
Settings BalloonTip: Wrapped tips were not using the maximum width, resulting in a much smaller width than they should have.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp b/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp
index ffed038c19..d9dce8dc81 100644
--- a/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp
+++ b/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp
@@ -104,8 +104,12 @@ BalloonTip::BalloonTip(PrivateTag, const QString& title, QString message, QWidge
const int max_width = label->screen()->availableGeometry().width() / 3;
label->setMaximumWidth(max_width);
+
if (label->sizeHint().width() > max_width)
+ {
label->setWordWrap(true);
+ label->setMinimumWidth(max_width);
+ }
return label;
};