Skip to content

Commit

Permalink
fix: floating toolbar position error (AppFlowy-IO#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
q200892907 authored Nov 23, 2023
1 parent 63a1a8d commit af9f97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/editor/toolbar/desktop/floating_toolbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class _FloatingToolbarState extends State<FloatingToolbar>
return (rect.left, top, null);
} else if (left >= threshold && right <= threshold * 2.0) {
// show in center
return (threshold, top, null);
return (editorRect.left + threshold, top, null);
} else {
// show in right
return (null, top, editorRect.right - rect.right);
Expand Down

0 comments on commit af9f97e

Please sign in to comment.