Skip to content

Commit

Permalink
fix: make the app full height in popout window (#12)
Browse files Browse the repository at this point in the history
Use the new class that is also available in a Solara popout window.
Keep the styling of #popout-widget-container for backward
compatibility with ipypopout<1.3.0.
  • Loading branch information
mariobuikhuizen authored and kecnry committed Jul 30, 2024
1 parent 562888f commit caf9dbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions jdaviz/main_styles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,16 @@ a:active {
max-height: calc(100% - 48px);
}
#popout-widget-container .v-application.jdaviz {
/* #popout-widget-container line can be removed once users use ipypopout >= 1.3.0 */
#popout-widget-container .v-application.jdaviz,
.jupyter-widgets-popout-container .v-application.jdaviz {
min-height: 100vh;
max-height: 100vh;
}
#popout-widget-container .jdaviz__content--not-in-notebook {
/* #popout-widget-container line can be removed once users use ipypopout >= 1.3.0 */
#popout-widget-container .jdaviz__content--not-in-notebook,
.jupyter-widgets-popout-container .jdaviz__content--not-in-notebook {
max-height: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"ipysplitpanes>=0.1.0",
"ipygoldenlayout>=0.3.0",
"ipywidgets>=8.0.6",
"solara>=1.32",
"solara>=1.36",
"pyyaml>=5.4.1",
"specutils>=1.15",
"specreduce>=1.4.1",
Expand Down

0 comments on commit caf9dbb

Please sign in to comment.