File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1205,8 +1205,9 @@ def _get_inline_height(self, size: Size) -> int:
12051205
12061206 def _screen_resized (self , size : Size ):
12071207 """Called by App when the screen is resized."""
1208- self ._compositor_refresh ()
1209- self ._refresh_layout (size )
1208+ if self .stack_updates :
1209+ self ._compositor_refresh ()
1210+ self ._refresh_layout (size )
12101211
12111212 def _on_screen_resume (self ) -> None :
12121213 """Screen has resumed."""
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ async def bindings_changed(self, screen: Screen) -> None:
259259 await self .recompose ()
260260
261261 def on_mount (self ) -> None :
262+ self .call_next (self .bindings_changed , self .screen )
262263 self .screen .bindings_updated_signal .subscribe (self , self .bindings_changed )
263264
264265 def on_unmount (self ) -> None :
You can’t perform that action at this time.
0 commit comments