From 8ba570415bb9c61f8fe1b213bbbf7150ea6fc533 Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 19 May 2024 22:04:04 +0200 Subject: [PATCH] fix: usercard jumping when loading data (#5406) --- CHANGELOG.md | 2 +- src/widgets/Label.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cc9646e9..7fb4f7e57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ - Dev: Add doxygen build target. (#5377) - Dev: Make printing of strings in tests easier. (#5379) - Dev: Refactor and document `Scrollbar`. (#5334, #5393) -- Dev: Reduced the amount of scale events. (#5404) +- Dev: Reduced the amount of scale events. (#5404, #5406) ## 2.5.1 diff --git a/src/widgets/Label.cpp b/src/widgets/Label.cpp index 1d3e7067f..529fb7575 100644 --- a/src/widgets/Label.cpp +++ b/src/widgets/Label.cpp @@ -20,6 +20,7 @@ Label::Label(BaseWidget *parent, QString text, FontStyle style) [this] { this->updateSize(); }); + this->updateSize(); } const QString &Label::getText() const