Closed
Description
Describe the bug
The CandidateWindow's top is not aligned to the caret pos
To Reproduce
<TextBox/>
Use Chinese Pinyin Input Method and type in it
Expected behavior
Could be same as most of major UI frameworks
Avalonia version
11.x
OS
Windows
Additional context
-- ptCurrentPos = new POINT {X = x2, Y = y2}
++ ptCurrentPos = new POINT {X = x2, Y = (int)((rect.Top + rect.Bottom)/2 * s) }
The Y might be incorrect, I tried to adjust(see the image), it's looks good but I think that's may not the solution. (Scale changed to 250% for test it's accuracy)