Page pointer appears out of page and disapears when scolling
Describe the Bug
When trying to link/comment on part of a big table, the pointer appears at the top of the table. Usually this is good behavior due to #3774 . But now when I select something lower down the table, the pointer appears out of the screen. Or when the top is just barely visible it appears there and disappears when I scroll toward it.
This also happens when selecting text in a list or quote element where the top is (almost) scrolled out of view.
Steps to Reproduce
- Create a long text table (10+ rows) (with some paragraphs/data after it so scrolling brings the top of the table out of view.)
- Add text to the last cell.
- Publish the page
- Scroll down the page so the top of the table is no longer in view
- Select the last bit of text in the table
- If scrolled just right you can still see that the pointer pops up at the top of the table but the rest is cut off.
- When scrolling towards the pointer pop-up, it disappears.
- If the top of the table is fully out of view, no pointer pops up
Or on the demo site https://demo.bookstackapp.com/link/2#bkmrk-shopping-list, scroll until the text "Biscuits" is at the top and select "Teabags"
Expected Behaviour
When the top of the selected element is not in view, the pointer should either:
- Show up around the selected text
- Not disappear when scrolling and the text is still selected.
Screenshots or Additional Context
Pointer/pop up at table top
Pointer out of screen (cut off is end of the screen, not end of the screenshot)
Same with a list on the demo page, where the purple is my browser window.
Browser Details
Tested on windows 11, firefox & chrome
Exact BookStack Version
self hosted v25.07 and the demo site.