Skip to content

Bug: FloatingTextFormatToolbarPlugin position change issue #7114

@Nagendra7509

Description

@Nagendra7509

I have end-aligned the text, and when I try to select the text in the first two lines, the FloatingTextFormatToolbarPlugin appears on top of the text. However, when moving to the third line, it shifts to the leftmost position.

Lexical version: 0.18.0

Steps To Reproduce

  1. Added 3 to 4 lines of text.
  2. Set the text to end alignment.
  3. Tried selecting the text line by line.
  4. The FloatingTextFormatToolbarPlugin appears on top of the text for the first two lines but shifts to the leftmost position when selecting the third line.
Toolbar.issue.mp4

The current behavior

I have end-aligned the text, and when I try to select the text in the first two lines, the FloatingTextFormatToolbarPlugin appears on top of the text. However, when moving to the third line, it shifts to the leftmost position.

The expected behavior

I have end-aligned the text, and when I try to select the text in the first two lines, the FloatingTextFormatToolbarPlugin appears on top of the text. However, when moving to the third line, it should appear on top of the text just like the first two lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    popoverIssues related to popover/menu code in the playground

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions