fix: Editor menu collapses wrong direction, regressed in #4938

This commit is contained in:
Tom Moor
2023-03-06 19:36:42 -05:00
parent 5c12f52c8d
commit ba13a25a78

View File

@@ -423,8 +423,8 @@ class CommandMenu<T extends MenuItem> extends React.PureComponent<
if (startPos.top - offsetHeight > margin) {
return {
left: leftPos,
top: top - offsetParent.top - offsetHeight,
bottom: undefined,
top: undefined,
bottom: offsetParent.bottom - top,
isAbove: false,
};
} else {