text: recalc layout after setting limits
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled

This commit is contained in:
Vaxry 2025-09-22 21:16:20 +01:00
parent 72e6801f08
commit 32e6b8386f
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -74,6 +74,8 @@ void CTextResource::render() {
pango_layout_set_height(layout, layoutHeight);
if (m_data.wrap)
pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR);
pango_layout_get_size(layout, &layoutWidth, &layoutHeight);
}
// TODO: avoid this?