mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(sqllab): scroll position after run current sql (#24965)
(cherry picked from commit 155cf54c15)
This commit is contained in:
committed by
Michael S. Molina
parent
3ffc5b69f8
commit
8d3a919f5e
@@ -343,6 +343,7 @@ const SqlEditor = ({
|
||||
const session = editor.getSession();
|
||||
const cursorPosition = editor.getCursorPosition();
|
||||
const totalLine = session.getLength();
|
||||
const currentRow = editor.getFirstVisibleRow();
|
||||
let end = editor.find(';', {
|
||||
backwards: false,
|
||||
skipCurrent: true,
|
||||
@@ -390,6 +391,7 @@ const SqlEditor = ({
|
||||
startQuery();
|
||||
editor.selection.clearSelection();
|
||||
editor.moveCursorToPosition(cursorPosition);
|
||||
editor.scrollToRow(currentRow);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user