Sticky panel's left position does not consider scrollable ancestors' horizontal scroll #14570
Labels
domain:ui/ux
This issue reports a problem related to UI or UX.
intro
Good first ticket.
package:ui
squad:core
Issue to be handled by the Core team.
type:bug
This issue reports a buggy (incorrect) behavior.
📝 Provide detailed reproduction steps (if any)\
A follow-up of #5465.
To reproduce:
✔️ Expected result
The sticky panel does not change its left position when getting sticky.
❌ Actual result
It gets moved a few dozen pixels away.
❓ Possible solution
This happens because we set the panel's
margin-left
based on the window's horizontal scroll only. We need to consider additive horizontal scroll positions of all ancestors insteadckeditor5/packages/ckeditor5-ui/src/panel/sticky/stickypanelview.ts
Line 356 in 4f9ce3c
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: