mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Don't break the position of the cell title toolbar on single-line cells
This commit is contained in:
parent
f26aa70aeb
commit
9bf9403e9a
|
@ -22,7 +22,7 @@ export function registerStickyScroll(notebookEditor: INotebookEditor, cell: ICel
|
|||
const maxTop = cell.layoutInfo.editorHeight + cell.layoutInfo.statusBarHeight - 45; // subtract roughly the height of the execution order label plus padding
|
||||
const top = maxTop > 20 ? // Don't move the run button if it can only move a very short distance
|
||||
clamp(min, diff, maxTop) :
|
||||
0;
|
||||
min;
|
||||
element.style.top = `${top}px`;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue