ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.52k stars 3.7k forks source link

BalloonPanelView positioning fails when body has position #17248

Open oleq opened 2 weeks ago

oleq commented 2 weeks ago

📝 Provide detailed reproduction steps (if any)

  1. Set <body> position to absolute or fixed
  2. Set top: 100px, left: 100px on <body>
  3. Hover a button

✔️ Expected result

A tooltip gets displayed next to the button

❌ Actual result

It's off by [100,100]px. It applies to other balloons too (e.g. link balloon).

https://github.com/user-attachments/assets/b338d0d7-8fa6-4a07-8baf-5ba9f5e452c2

More info

The issue was found while working on https://github.com/ckeditor/ckeditor5/pull/17247.


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Witoso commented 2 weeks ago

@oleq is this related https://github.com/ckeditor/ckeditor5/issues/17241?

oleq commented 2 weeks ago

@oleq is this related #17241?

I think they are related.