-
Notifications
You must be signed in to change notification settings - Fork 784
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
Inline glitch with 1 line screen #5016
Comments
I'm probably wrong, but from a quick look at the textual/src/textual/_compositor.py Lines 153 to 157 in cbef6cd
Here's my quick MRE if it helps: from textual.app import App, ComposeResult
from textual.widgets import Tree
class InlineGlitchApp(App):
CSS = """
Screen:inline {
border: none;
}
Tree {
height: auto;
}
"""
def compose(self) -> ComposeResult:
tree = Tree("This line gets repeated each time I'm expanded...")
tree.root.add_leaf("...then collapsed again")
yield tree
if __name__ == "__main__":
app = InlineGlitchApp()
app.run(inline=True) |
That does look like it could be the culprit! |
Thanks for the MREs, Tom. Always a big help. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
I think there is a glitch when an inline app is 1 character high. The line gets repeated.
This occurred when a Tree was auto height, and there was a single node.
The text was updated successfully, but these errors were encountered: