The button is cut off when I roll up the screen. #3630
Unanswered
jakubziebin
asked this question in
Q&A
Replies: 2 comments 3 replies
-
It's not clear to me what your question is; as outlined above you seem to be saying that if you size your window down enough that your whole app can't fit inside it any more, it can't fit inside it any more. Do you think you could try and describe the problem in a slightly different way so it's clear what you're looking for help with? |
Beta Was this translation helpful? Give feedback.
3 replies
-
If I've understood the issue correctly, I think adding a height for I've created a reduced example based on your code, just to make it a bit easier to reason about. BeforeAfterfrom textual.app import App, ComposeResult
from textual.containers import ScrollableContainer
from textual.widget import Widget
from textual.widgets import Button, Label, TabbedContent, TabPane
class MyWidget(Widget):
DEFAULT_CSS = """
MyWidget {
layout: horizontal;
height: auto;
width: auto;
}
"""
def compose(self) -> ComposeResult:
yield Label("Example label")
yield Button("Hidden button")
class MyTabPane(TabPane):
def compose(self) -> ComposeResult:
with ScrollableContainer():
yield MyWidget()
class MyApp(App[None]):
def compose(self) -> ComposeResult:
with TabbedContent():
yield MyTabPane("MY TAB")
if __name__ == "__main__":
app = MyApp()
app.run() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a similar structure in application:
When I collapse the screen, scrolling appears, but the button is cut off. I can only see 1/3 of it, and when I scroll down, I can't see it.

I'm using
0.41.0
version of textual. We dealt with this by adding two empty statics at the end, but I don't think this is the best way.Beta Was this translation helpful? Give feedback.
All reactions