Widget in ScollView and changing height #210
Replies: 1 comment
-
I think I've run into the same issue as you. I've got a set of widgets I'd like to cycle through on key press. In the action, I call If I try and resize the terminal, the scrollview properly updates and fills the space. If I don't do any resizing, then the second time I display the widget it's properly sized. The same thing happens if I use a |
Beta Was this translation helpful? Give feedback.
-
Hi,
playing around with textual and I really like it! I've run into an issue though, not sure whether it's a bug or if I'm just doing it wrong.
I'm including a minimal application below. It consists of a widget in a
ScrollView
, which gets updated after one second so that its content takes up more vertical space. The idea is to simulate a case where the data is asynchronously loaded from somewhere else.The issue is that only the first row is shown after the update. I guess the
ScrollView
does not update the space needed for the widget. It does work as expected if I skip theScrollView
. Also, if I resize the window after the update happened, the widget gets resized to show the entire message, so it seems like some layout refresh is just missing.Beta Was this translation helpful? Give feedback.
All reactions