mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-11 05:24:45 -05:00
Fix auto scrolling issue in debugger on step in and step out. Fixes #3554.
This commit is contained in:
committed by
Akshay Joshi
parent
208ee4da8c
commit
283a69a21a
@@ -0,0 +1,7 @@
|
||||
import CodeMirror from 'codemirror/lib/codemirror';
|
||||
|
||||
CodeMirror.defineExtension('centerOnLine', function(line) {
|
||||
var ht = this.getScrollInfo().clientHeight;
|
||||
var coords = this.charCoords({line: line, ch: 0}, 'local');
|
||||
this.scrollTo(null, (coords.top + coords.bottom - ht) / 2);
|
||||
});
|
||||
Reference in New Issue
Block a user