Skip to content

Commit dc721ab

Browse files
author
Nate Rush
authored
Merge pull request #1275 from mito-ds/scroll-select-data
Fix scrolling in select data taskpane of graph editor
2 parents cdbcdcc + 2f79ebb commit dc721ab

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

mitosheet/css/taskpanes/Graph/GraphSidebar.css

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
padding-right: 5px;
7777
padding-left: 5px;
7878
box-sizing: border-box;
79+
80+
height: 100%;
81+
overflow-y: scroll;
7982
}
8083

8184
.graph-sidebar-toolbar-content {

tests/streamlit_ui_tests/graph.spec.ts

+13
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@ test.describe('Graph Functionality', () => {
180180
await expect(mito.locator('.legend')).toHaveText('variableColumn1Column2');
181181
});
182182

183+
test('Can scroll in the select data taskpane', async ({ page }) => {
184+
const mito = await getMitoFrameWithTestCSV(page);
185+
await openGraphEditor(mito, page);
186+
187+
await expect(mito.getByText('Facet row')).toBeVisible();
188+
189+
await addColumnToAxis(mito, page, 'Y', 'Column2');
190+
await addColumnToAxis(mito, page, 'Y', 'Column3');
191+
await expect(mito.getByText('Facet row')).not.toBeInViewport();
192+
await mito.getByText('Facet row').scrollIntoViewIfNeeded();
193+
await expect(mito.getByText('Facet row')).toBeInViewport();
194+
});
195+
183196
test('Make a histogram and change the histogram specific configurations', async ({ page }) => {
184197
const mito = await getMitoFrameWithTestCSV(page);
185198

0 commit comments

Comments
 (0)