@flozy/editor 4.6.1 → 4.6.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -111,8 +111,20 @@ const PopupTool = props => {
|
|
111
111
|
open: open,
|
112
112
|
anchorEl: anchorEl,
|
113
113
|
transition: true,
|
114
|
-
placement: "auto-end",
|
115
114
|
sx: classes.popupWrapper,
|
115
|
+
placement: "bottom-start" // or "top" depending on the preferred direction
|
116
|
+
,
|
117
|
+
modifiers: [{
|
118
|
+
name: "preventOverflow",
|
119
|
+
options: {
|
120
|
+
boundary: editorWrapper?.current
|
121
|
+
}
|
122
|
+
}, {
|
123
|
+
name: "flip",
|
124
|
+
options: {
|
125
|
+
fallbackPlacements: ["top-start", "bottom-start"]
|
126
|
+
}
|
127
|
+
}],
|
116
128
|
children: ({
|
117
129
|
TransitionProps
|
118
130
|
}) => /*#__PURE__*/_jsx(Fade, {
|