@@ -460,7 +460,7 @@ def __init__(
460460 self ._content_height_cache : tuple [object , int ] = (None , 0 )
461461
462462 self ._arrangement_cache : FIFOCache [
463- tuple [Size , int , Widget | None ], DockArrangeResult
463+ tuple [Size , int , bool ], DockArrangeResult
464464 ] = FIFOCache (4 )
465465
466466 self ._styles_cache = StylesCache ()
@@ -1264,11 +1264,14 @@ def render_str(self, text_content: str | Content) -> Content:
12641264 return text_content
12651265 return Content .from_markup (text_content )
12661266
1267- def _arrange (self , size : Size , optimal : bool = False ) -> DockArrangeResult :
1268- """Arrange children.
1267+ def arrange (self , size : Size , optimal : bool = False ) -> DockArrangeResult :
1268+ """Arrange child widgets.
1269+
1270+ This method is best left along, unless you have a deep understanding of what it does.
12691271
12701272 Args:
12711273 size: Size of container.
1274+ optimal: Whether fr units should expand the widget (`False`) or avoid expanding the widget (`True`).
12721275
12731276 Returns:
12741277 Widget locations.
@@ -4201,6 +4204,8 @@ def refresh(
42014204 if not isinstance (ancestor , Widget ):
42024205 break
42034206 ancestor ._clear_arrangement_cache ()
4207+ if not ancestor .styles .auto_dimensions :
4208+ break
42044209
42054210 if recompose :
42064211 self ._recompose_required = True
0 commit comments