Skip to content

Commit

Permalink
Merge pull request #1718 from mariobuikhuizen/fix_tabbed_viewer
Browse files Browse the repository at this point in the history
fix: workaround for blank tabbed viewers after selection
  • Loading branch information
kecnry authored Oct 14, 2022
2 parents f04a642 + 3dcfe34 commit fec3a1b
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 @@ -77,6 +77,8 @@ Bug Fixes

- Fix subset selection tool conflicts caused by a duplicate toolbar. [#1679]

- Fixed blank tabbed viewers. [#1718]

Cubeviz
^^^^^^^

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 fec3a1b

Please sign in to comment.