Skip to content

Commit

Permalink
fix: verticalscroll update layout refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Jan 21, 2024
1 parent 8ea3b55 commit 9d0b06a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions termtyper/ui/widgets/typing/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from rich.style import Style
from rich.text import Span, Text
from textual.widget import Widget
from textual.widgets import Static
from termtyper.src import master_generator, Tracker, Cursor
from termtyper.src.buddy import Buddy
from termtyper.src.parser import config_parser
Expand Down Expand Up @@ -97,14 +98,7 @@ def wrapper(space: "Space", *args, **kwargs) -> Style:
return wrapper


class Space(Widget):
DEFAULT_CSS = """
Space {
height: auto;
min-height: 3;
}
"""

class Space(Static):
COMPONENT_CLASSES = {
"--cursor-buddy",
"--correct-match",
Expand Down Expand Up @@ -196,7 +190,7 @@ def reset_components(self) -> None:
self.reset_newlines()
self.screen.query_one(Ticker).reset()

self.refresh()
self.refresh(layout=True)

@cursor_buddy
@caret
Expand Down

0 comments on commit 9d0b06a

Please sign in to comment.