mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-10 19:58:00 +01:00
fix isFirst offsetdelta
This commit is contained in:
parent
7ea4fb8db4
commit
8ea8b406d3
@ -290,7 +290,7 @@ class LinesView extends React.Component<{screen : ScreenInterface, width : numbe
|
||||
let viewInfo = this.getLineViewInfo(newLine);
|
||||
let isFirst = (lidx.index == 0);
|
||||
let isLast = (lidx.index == lines.length-1);
|
||||
let offsetDelta = (isLast ? 10 : (isFirst ? -10 : 0));
|
||||
let offsetDelta = (isLast ? 10 : (isFirst ? -28 : 0));
|
||||
if (viewInfo == null) {
|
||||
screen.setAnchorFields(newLine, 0+offsetDelta, "updateSelectedLine");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user