diff options
author | 2025-02-13 05:19:32 +0100 | |
---|---|---|
committer | 2025-02-13 05:19:32 +0100 | |
commit | f889008e21971b461ec7c54d9a7667a23f6ab35b (patch) | |
tree | 91d9d34c87796da424104c46705e9f1aceb69f92 /widget/src/scrollable.rs | |
parent | 97f1db3783dca5a4f60a9f89668613de4dfe9edd (diff) | |
parent | 89a4dc2ac2a751fdcae921997bb93a76f9b667f9 (diff) | |
download | iced-f889008e21971b461ec7c54d9a7667a23f6ab35b.tar.gz iced-f889008e21971b461ec7c54d9a7667a23f6ab35b.tar.bz2 iced-f889008e21971b461ec7c54d9a7667a23f6ab35b.zip |
Merge pull request #2793 from rhysd/issue-2792
Fix the initial candidate window position
Diffstat (limited to 'widget/src/scrollable.rs')
-rw-r--r-- | widget/src/scrollable.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index fe71fd6b..0cf75c04 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -729,7 +729,7 @@ where _ => mouse::Cursor::Unavailable, }; - let had_input_method = shell.input_method().is_open(); + let had_input_method = shell.input_method().is_enabled(); let translation = state.translation(self.direction, bounds, content_bounds); @@ -750,7 +750,7 @@ where ); if !had_input_method { - if let InputMethod::Open { position, .. } = + if let InputMethod::Enabled { position, .. } = shell.input_method_mut() { *position = *position - translation; |