SpinaCMS/Spina

Trix image alt text fields get pushed offscreen by the sticky trix toolbar

michaelkitson opened this issue · 0 comments

Hi, we're just getting started with Spina and noticed an issue with the Trix alt text fields for images. The alt text fields are positioned absolutely, with a calculated pixel offset from the top of the trix element. However they're nested in the DOM tree under the sticky toolbar, so when you're scrolled down to where the sticky behavior is in effect, the calculated positions are wrong.

I recorded this quick video to demonstrate the issue:

example_720.mp4

I also have a quick fix on a fork which I'll link below. Feel free to ignore it and fix it with a different approach.