fix: Editor menu collapses wrong direction, regressed in #4938
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user