Don't break the position of the cell title toolbar on single-line cells

This commit is contained in:
Rob Lourens 2022-02-16 12:52:38 -08:00
parent f26aa70aeb
commit 9bf9403e9a

View file

@ -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`;
}
};