I'm working on autocomplete for a Compose for Desk...
# compose-desktop
d
I'm working on autocomplete for a Compose for Desktop mini-IDE using a DSL I designed. When a DOT (.) is typed after a property or class it is supposed to pop up a context menu with the members (properties and functions) in the menu so they can be easily selected with the keyboard or mouse. You see this feature in IDEs like IntelliJ IDEA, Xcode and VS Code. Thus far I haven't been able to get the popup (context) menu to appear with it's upper left hand corner touching the DOT. The menu works, but it is never in the correct position. The coordinates are aways off. The menu displays farther down (down and away) from the DOT if your DOT is typed toward the viewport's bottom, and up (over) the DOT if you type it toward the viewport's top. Using X / Y coordinates with offsets doesn't work and neither does using rows and columns. Margins are built into the calculations. All the units are correct. I've been working on this along with Claude and other AI's. Nobody can figure it out. There seems to be a serious bug or bugs in one of the (outside) supporting components, either in the coordinate calculations, units or something adjacent to them. Has anyone encountered this problem?
a
Can you create a small reproducible snippet of code with the issue?
k
Don’t make people guess what you’re doing. Show the smallest piece of code that has the issue you’re describing, so that people can copy-paste into their IDE, run unmodified (no additional code anywhere that they need to add). Help people here help you.