Skip to content

Commit d1d3e5a

Browse files
committed
revert optimization
1 parent 1cef349 commit d1d3e5a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/textual/widget.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,11 +2179,7 @@ def refresh(
21792179
for ancestor in self.ancestors:
21802180
if not isinstance(ancestor, Widget):
21812181
break
2182-
if ancestor.styles.auto_dimensions:
2183-
for ancestor in self.ancestors_with_self:
2184-
if isinstance(ancestor, Widget):
2185-
ancestor._clear_arrangement_cache()
2186-
break
2182+
ancestor._clear_arrangement_cache()
21872183

21882184
if repaint:
21892185
self._set_dirty(*regions)

0 commit comments

Comments
 (0)