|
@@ -60,7 +60,7 @@ class SelectionMenu implements SelectionMenuService {
|
|
// but the coordinates of overlay are not properly converted currently.
|
|
// but the coordinates of overlay are not properly converted currently.
|
|
// Just subtract the padding here as a result.
|
|
// Just subtract the padding here as a result.
|
|
const menuHeight = 200.0;
|
|
const menuHeight = 200.0;
|
|
- const menuOffset = Offset(10, 10);
|
|
|
|
|
|
+ const menuOffset = Offset(0, 10);
|
|
final editorOffset =
|
|
final editorOffset =
|
|
editorState.renderBox?.localToGlobal(Offset.zero) ?? Offset.zero;
|
|
editorState.renderBox?.localToGlobal(Offset.zero) ?? Offset.zero;
|
|
final editorHeight = editorState.renderBox!.size.height;
|
|
final editorHeight = editorState.renderBox!.size.height;
|
|
@@ -81,7 +81,8 @@ class SelectionMenu implements SelectionMenuService {
|
|
_selectionMenuEntry = OverlayEntry(builder: (context) {
|
|
_selectionMenuEntry = OverlayEntry(builder: (context) {
|
|
return Positioned(
|
|
return Positioned(
|
|
top: showBelow ? offset.dy : null,
|
|
top: showBelow ? offset.dy : null,
|
|
- bottom: showBelow ? null : editorHeight - offset.dy,
|
|
|
|
|
|
+ bottom:
|
|
|
|
+ showBelow ? null : MediaQuery.of(context).size.height - offset.dy,
|
|
left: offset.dx,
|
|
left: offset.dx,
|
|
child: SelectionMenuWidget(
|
|
child: SelectionMenuWidget(
|
|
items: [
|
|
items: [
|