Mat, You are much better with css than I am. I had to add on the scroll position to the position value but it works. The only problem I have found is that when you are typing in the search box and then you scroll the story river with the popup active it will scroll with the river, but once you continue typing it goes back to the correct position.
There is still the refresh problem where the position is always one step behind where it should be, that should be able to be handled with the widget somehow, I need to look into it. I will push the changes in a moment. On Thursday, March 5, 2020 at 9:02:02 PM UTC+1, Mat wrote: > > Dear all, for EditorMagic <http://editormagic.tiddlyspot.com/> I am > really hoping to show the popup at cursor position. Fellow Snowgoon uses > this code in his comptext plugin in TW: > > > https://github.com/snowgoon88/TW5-extendedit/blob/master/plugin/files/cursor-position.js > > I don't understand js. How would I use this to position a div? Is it > possible? Is there some kind of command? > > What I want to do is to control the position of a popup (a div) to be just > below the cursor. I assume the most critical bit for this is to identify > the x,y values for the cursor. > > Thank you. > > <:-) > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/3fb37b56-9574-4052-8f98-bddf46452b37%40googlegroups.com.
