Skip to content
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

Resizing window glitches UI for ScrollView widgets like Log and RichLog #5453

Closed
davidfokkema opened this issue Jan 4, 2025 · 3 comments · Fixed by #5460
Closed

Resizing window glitches UI for ScrollView widgets like Log and RichLog #5453

davidfokkema opened this issue Jan 4, 2025 · 3 comments · Fixed by #5460

Comments

@davidfokkema
Copy link

The issue was first introduced with commit 8c84274.

Here's an MRE:

from textual.app import App, ComposeResult
from textual.widgets import Log


class ResizeBugApp(App[None]):
    CSS = """
        Log {
            border: solid;
        }
    """

    def compose(self) -> ComposeResult:
        yield Log()


ResizeBugApp().run()

It will be helpful if you run the following command and paste the results:

<!-- This is valid Markdown, please paste the following directly in to a GitHub issue -->
# Textual Diagnostics

## Versions

| Name    | Value  |
|---------|--------|
| Textual | 1.0.0  |
| Rich    | 13.8.0 |

## Python

| Name           | Value                                                         |
|----------------|---------------------------------------------------------------|
| Version        | 3.12.4                                                        |
| Implementation | CPython                                                       |
| Compiler       | Clang 14.0.6                                                  |
| Executable     | /opt/homebrew/Caskroom/miniconda/base/envs/textual/bin/python |

## Operating System

| Name    | Value                                                                                                 |
|---------|-------------------------------------------------------------------------------------------------------|
| System  | Darwin                                                                                                |
| Release | 24.2.0                                                                                                |
| Version | Darwin Kernel Version 24.2.0: Fri Dec  6 18:56:34 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6020 |

## Terminal

| Name                 | Value              |
|----------------------|--------------------|
| Terminal Application | iTerm.app (3.5.11) |
| TERM                 | xterm-256color     |
| COLORTERM            | truecolor          |
| FORCE_COLOR          | *Not set*          |
| NO_COLOR             | *Not set*          |

## Rich Console options

| Name           | Value               |
|----------------|---------------------|
| size           | width=80, height=28 |
| legacy_windows | False               |
| min_width      | 1                   |
| max_width      | 80                  |
| is_terminal    | False               |
| encoding       | utf-8               |
| max_height     | 28                  |
| justify        | None                |
| overflow       | None                |
| no_wrap        | False               |
| highlight      | None                |
| markup         | None                |
| height         | None                |
Screenshot 2025-01-04 at 13 00 39
Copy link

github-actions bot commented Jan 4, 2025

We found the following entries in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@Mythical-Github
Copy link

Just popping in to confirm I also have this issue currenly in this repo as well
https://github.com/Mythical-Github/plutonium_launcher_tui
f469f02da4aeb75026eb1735943d1748fdcb7fe1

Copy link

github-actions bot commented Jan 7, 2025

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants