Skip to content

[IME] The CandidateWindow seems placed not correctly in Windows #18748

Closed
@realybin

Description

@realybin

Describe the bug

Image

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

Image

-- 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)

ptCurrentPos = new POINT {X = x2, Y = y2}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions