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:
1205
1205
1206
1206
def _screen_resized (self , size : Size ):
1207
1207
"""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 )
1210
1211
1211
1212
def _on_screen_resume (self ) -> None :
1212
1213
"""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:
259
259
await self .recompose ()
260
260
261
261
def on_mount (self ) -> None :
262
+ self .call_next (self .bindings_changed , self .screen )
262
263
self .screen .bindings_updated_signal .subscribe (self , self .bindings_changed )
263
264
264
265
def on_unmount (self ) -> None :
You can’t perform that action at this time.
0 commit comments