-
Notifications
You must be signed in to change notification settings - Fork 888
Weird height behavior after 1.0.0 update #5450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried debugging by adding explicit If compose wasn't being run you wouldn't see anything at all. Your print statement is sent to the dev console, not displayed in the app. |
@TomJGooding forgot about the dev console thing 😅 You are right, problem is height. Is there a reason why Referring to https://github.com/Zatfer17/tui-network/blob/0112b62c3cc1def2e189682413d84feaedf92402/tui_network/static/style.tcss#L16 for instance Or was my css wrong since the beginning? Perhaps I should have set the height on the vertical group in the first place, instead of the inner widget, but I wonder why it used to work before |
I think the problem is that the I'm not quite sure why this worked before, it looks like this changed following #5360. Probably needs a maintainer to confirm if this is expected behaviour or a possible regression! |
Could I have an MRE? You (awesome) app is too much to debug. |
@willmcgugan It's obviously been a while since I looked at this, but I think something like this demonstrates the issue. Before Textual v1.0.0, this displays a 2x2 grid but now it looks like a blank screen: from textual.app import App, ComposeResult
from textual.containers import Grid, VerticalGroup
from textual.widgets import Placeholder
class ExampleApp(App):
CSS = """
Grid {
grid-size: 2;
}
"""
def compose(self) -> ComposeResult:
with Grid():
for _ in range(4):
with VerticalGroup():
yield Placeholder()
if __name__ == "__main__":
app = ExampleApp()
app.run() |
Hello! Today I tried bumping the textual version of my tui-network tool and couldn't see any widget content. After some fiddling I figured out the app compose is not being run. Could you have a look? Perhaps this happens only with packaged apps?
I've made a branch for my app as a proof: https://github.com/Zatfer17/tui-network/tree/textual-issue
The text was updated successfully, but these errors were encountered: