fix: Label.cpp: uinode size
This commit is contained in:
@@ -63,7 +63,7 @@ void LabelCache::update(const std::wstring& text, bool multiline, bool wrap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Label::Label(const std::string& text, std::string fontName)
|
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)),
|
text(util::str2wstr_utf8(text)),
|
||||||
fontName(std::move(fontName))
|
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)
|
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),
|
text(text),
|
||||||
fontName(std::move(fontName))
|
fontName(std::move(fontName))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user