Skip to content

Commit 5aa7089

Browse files
committed
feat: enable scrolling for display tables in fullscreen mode
1 parent dbf2ca2 commit 5aa7089

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

pydelmod/dvue/dataui.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,12 @@ def create_data_table(self, dfs):
530530
sizing_mode="stretch_both", allow_resize=True, allow_drag=False
531531
)
532532
gspec[0, 0:5] = self._action_panel
533-
gspec[1:5, 0:10] = fullscreen.FullScreen(pn.Row(self.display_table))
534-
gspec[6:15, 0:10] = fullscreen.FullScreen(self._display_panel)
533+
gspec[1:5, 0:10] = fullscreen.FullScreen(
534+
pn.Row(self.display_table, scroll=True)
535+
)
536+
gspec[6:15, 0:10] = fullscreen.FullScreen(
537+
pn.Row(self._display_panel, scroll=True)
538+
)
535539
self._main_panel = gspec
536540
return gspec
537541

@@ -579,18 +583,22 @@ def _create_main_view(self):
579583
sizing_mode="stretch_both", allow_resize=False, allow_drag=False
580584
)
581585
gspec[0, 0:5] = self._action_panel
582-
gspec[1:15, 0:10] = fullscreen.FullScreen(pn.Row(self.display_table))
586+
gspec[1:15, 0:10] = fullscreen.FullScreen(
587+
pn.Row(self.display_table, scroll=True)
588+
)
583589
return gspec
584590
elif self.view_type == "display":
585591
gspec = pn.GridStack(
586592
sizing_mode="stretch_both", allow_resize=False, allow_drag=False
587593
)
588594
gspec[0, 0:5] = self._action_panel
589-
gspec[1:15, 0:10] = fullscreen.FullScreen(self._display_panel)
595+
gspec[1:15, 0:10] = fullscreen.FullScreen(
596+
pn.Row(self._display_panel, scroll=True)
597+
)
590598
return gspec
591599
else: # combined view
592600
return pn.Column(
593-
pn.Row(self._main_panel, sizing_mode="stretch_both"),
601+
pn.Row(self._main_panel, sizing_mode="stretch_both", scroll=True),
594602
sizing_mode="stretch_both",
595603
)
596604

0 commit comments

Comments
 (0)