Skip to content

Adjusting Scrollbar Position Within a Grid Layout Container #5658

Closed Answered by TomJGooding
Walterhart asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, I stand corrected! Here's a more minimal example which demonstrates the problem:

from textual.app import App, ComposeResult
from textual.containers import VerticalScroll
from textual.widgets import Static

TEXT = """I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings total obliteration.
I will face my fear.
I will permit it to pass over me and through me.
And when it has gone past, I will turn the inner eye to see its path.
Where the fear has gone there will be nothing. Only I will remain."""


class ExampleApp(App):
    CSS = """
    VerticalScroll {
        padding: 10;
        background: $surface;
        border: thick orange;
    }
    """

    def c…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Walterhart
Comment options

@TomJGooding
Comment options

Answer selected by Walterhart
@Walterhart
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants