Skip to content

Commit 3ac04f3

Browse files
committed
refresh option list
1 parent 0e835a4 commit 3ac04f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/textual/content.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def to_strip(self, style: Style) -> Strip:
10241024

10251025
if align in ("start", "left") or (align == "justify" and self.line_end):
10261026
pass
1027-
pad_right = width - self.content.cell_length
1027+
# pad_right = width - self.content.cell_length
10281028
# pad_right = 0
10291029

10301030
elif align == "center":

Diff for: src/textual/widgets/_option_list.py

+1
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def _on_mouse_move(self, event: events.MouseMove) -> None:
411411
event: The mouse movement event.
412412
"""
413413
self._mouse_hovering_over = event.style.meta.get("option")
414+
self.refresh()
414415

415416
def _on_leave(self, _: events.Leave) -> None:
416417
"""React to the mouse leaving the widget."""

0 commit comments

Comments
 (0)