Fix macOS IME overlay positioning (#21416)
Release Notes: - Improved positioning of macOS IME overlay --------- Co-authored-by: Richard Feldman <richard@zed.dev>
This commit is contained in:
parent
4e12f0580a
commit
7c40824783
2 changed files with 6 additions and 2 deletions
|
@ -14611,7 +14611,8 @@ impl ViewInputHandler for Editor {
|
|||
|
||||
let start = OffsetUtf16(range_utf16.start).to_display_point(&snapshot);
|
||||
let x = snapshot.x_for_display_point(start, &text_layout_details) - scroll_left
|
||||
+ self.gutter_dimensions.width;
|
||||
+ self.gutter_dimensions.width
|
||||
+ self.gutter_dimensions.margin;
|
||||
let y = line_height * (start.row().as_f32() - scroll_position.y);
|
||||
|
||||
Some(Bounds {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue