Skip to content

Commit

Permalink
fix: workaround for blank tabbed viewers after selection
Browse files Browse the repository at this point in the history
Fixes #1677
  • Loading branch information
mariobuikhuizen committed Oct 11, 2022
1 parent ac58644 commit 5b10db4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Specviz2d
Other Changes and Additions
---------------------------

- Fixed blank tabbed viewers. [#1718]

3.0.1 (2022-10-10)
==================

Expand Down
5 changes: 5 additions & 0 deletions jdaviz/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<golden-layout
style="height: 100%;"
:has-headers="state.settings.visible.tab_headers"
@state="onLayoutChange"
>
<gl-row :closable="false">
<g-viewer-tab
Expand Down Expand Up @@ -178,6 +179,10 @@ export default {
}
// simple exact text search match on the plugin title for now.
return trayItem.label.toLowerCase().indexOf(tray_items_filter.toLowerCase()) !== -1
},
onLayoutChange() {
/* Workaround for #1677, can be removed when bqplot/bqplot#1531 is released */
window.dispatchEvent(new Event('resize'));
}
},
created() {
Expand Down

0 comments on commit 5b10db4

Please sign in to comment.