From 31576fc87177f9cee40a4eab4ede937483b543ed Mon Sep 17 00:00:00 2001 From: Hatice Karatay <66814693+haticekaratay@users.noreply.github.com> Date: Tue, 6 Feb 2024 10:31:02 -0500 Subject: [PATCH] Fix data menu cutoff in smaller viewers (#2630) * Scroll when data menu list gets longer * Add dynamic menu position update - in progress * Menu scrolls with the viewer but location needs update * Sync with the main * Dynamically position the menu with the button * Add a change log * Remove redundant ref * Add unique viewer IDs to buttons for improved specificity --- CHANGES.rst | 2 ++ jdaviz/components/viewer_data_select.vue | 32 ++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index cd22e583da..69f883df02 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -116,6 +116,8 @@ Bug Fixes * Viewer data-menu is no-longer synced between different instances of the app to avoid recursion between click events. [#2670] +* Fix data-menu cutoff in smaller viewers, ensuring full visibility regardless of viewer dimensions. [#2630] + Cubeviz ^^^^^^^ - Fixes Spectral Extraction's assumptions of one data per viewer, and flux data only in diff --git a/jdaviz/components/viewer_data_select.vue b/jdaviz/components/viewer_data_select.vue index 29e65c65c4..bde3092dcf 100644 --- a/jdaviz/components/viewer_data_select.vue +++ b/jdaviz/components/viewer_data_select.vue @@ -1,8 +1,9 @@