@flozy/editor 4.6.1 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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, {
|