fix: link to page dialog offset (#3840)

This commit is contained in:
Mathias Mogensen 2023-10-31 20:11:32 +01:00 committed by GitHub
parent 59dff54edb
commit 54dbcb7c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ void showLinkToPageMenu(
final alignment = menuService.alignment;
final offset = menuService.offset;
final top = alignment == Alignment.bottomLeft ? offset.dy : null;
final bottom = alignment == Alignment.topLeft ? offset.dy : null;
final top = alignment == Alignment.topLeft ? offset.dy : null;
final bottom = alignment == Alignment.bottomLeft ? offset.dy : null;
keepEditorFocusNotifier.increase();
late OverlayEntry linkToPageMenuEntry;
@ -246,7 +246,6 @@ extension on ViewLayoutPB {
case ViewLayoutPB.Calendar:
return LocaleKeys.document_slashMenu_calendar_selectACalendarToLinkTo
.tr();
default:
throw Exception('Unknown layout type');
}