[Bug]: Lag when resizing text content
Describe the bug
When resizing the window, specifically when resizing text content (image is fine), the resize will lag behind a lot.
Maybe an issue with libadwaita, but considering I have less issues with other text-based libadwaita applications, I'm thinking it's a Tuba issue. Other applications, when faced with tons of resizing text, are a lot smoother.
Steps To Reproduce
- Log into Tuba
- Make the window small
- Find some text content
- Resize the window such that the text content adjusts itself a lot
Logs and/or Screenshots
❯ dev.geopjr.Tuba
(dev.geopjr.Tuba:2): Gtk-WARNING **: 03:14:13.466: Unknown key gtk-modules in /var/home/oro/.var/app/dev.geopjr.Tuba/config/gtk-4.0/settings.ini
Tuba-Message: 03:14:13.539: Application.vala:114: os: GNOME 44 (Flatpak runtime)
Tuba-Message: 03:14:13.539: Application.vala:114: prefix: /app
Tuba-Message: 03:14:13.539: Application.vala:114: flatpak: true
Tuba-Message: 03:14:13.539: Application.vala:114: version: 0.3.2 (production)
Tuba-Message: 03:14:13.539: Application.vala:114: gtk: 4.10.3 (4.10.3)
Tuba-Message: 03:14:13.539: Application.vala:114: libadwaita: 1.3.2 (1.3.2)
Tuba-Message: 03:14:13.539: Application.vala:114: libsoup: 3.4.2 (3.4.1)
Tuba-Message: 03:14:13.539: Application.vala:114: libgtksourceview: 5.8.0 (5.8.0)
Tuba-Message: 03:14:13.541: SecretAccountStore.vala:11: Using libsecret v0.20.5
All other logs are irrelevant, and nothing shows when resizing.
Instance Backend
Mastodon
Operating System
Fedora Silverblue 38
Package
Flatpak
Troubleshooting information
os: GNOME 44 (Flatpak runtime) prefix: /app flatpak: true version: 0.3.2 (production) gtk: 4.10.3 (4.10.3) libadwaita: 1.3.2 (1.3.2) libsoup: 3.4.2 (3.4.1) libgtksourceview: 5.8.0 (5.8.0)
Additional Context
I can also reproduce the lag when clicking on my profile and resizing that.
Thanks for raising this issue!
I am not entirely sure if it's just a label issue or in general statuses being too complex but #179 might fix it when I get to it. The labels could also be the culprit as they are a port of Fractal's LabelWithWidgets and I might have missed something https://github.com/GeopJr/Tuba/blob/main/src/Widgets/LabelWithWidgets.vala. I need to investigate it further