From 6e8a4bacff77b7eba39393bcc8a5fb417a288884 Mon Sep 17 00:00:00 2001 From: alexei-zebra Date: Mon, 17 Feb 2025 00:32:33 +0300 Subject: [PATCH] fix: Label.cpp: uinode size --- src/graphics/ui/elements/Label.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/ui/elements/Label.cpp b/src/graphics/ui/elements/Label.cpp index ddf532b9..392a9434 100644 --- a/src/graphics/ui/elements/Label.cpp +++ b/src/graphics/ui/elements/Label.cpp @@ -63,7 +63,7 @@ void LabelCache::update(const std::wstring& text, bool multiline, bool wrap) { } Label::Label(const std::string& text, std::string fontName) - : UINode(glm::vec2(text.length() * 8, 15)), + : UINode(glm::vec2(text.length() * 8, 16)), text(util::str2wstr_utf8(text)), fontName(std::move(fontName)) { @@ -73,7 +73,7 @@ Label::Label(const std::string& text, std::string fontName) Label::Label(const std::wstring& text, std::string fontName) - : UINode(glm::vec2(text.length() * 8, 15)), + : UINode(glm::vec2(text.length() * 8, 16)), text(text), fontName(std::move(fontName)) {