We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing on Debian bullseye, the position of the dropdown popup window is wrong. The following patch makes it better:
diff --git a/src/dropdown.rs b/src/dropdown.rs index 357a80e..dbd692a 100644 --- a/src/dropdown.rs +++ b/src/dropdown.rs @@ -33,7 +33,7 @@ impl<T: Data> Dropdown<T> { fn show_dropdown(&mut self, data: &mut T, env: &Env, ctx: &mut EventCtx) { let widget = (self.drop)(data, env); - let origin = ctx.to_screen(Point::new(0., ctx.size().height)); + let origin = ctx.to_window(Point::new(0., ctx.size().height)); self.window = Some( ctx.new_sub_window( WindowConfig::default()
Horizontal position is now correct, but the windows has still the wrong vertical position (off by about the size of the window decorations).
The text was updated successfully, but these errors were encountered:
If it's an improvement, then make a PR. 🙂
If you do, could you add a TODO comment. Just copying and pasting
Would be fine.
Sorry, something went wrong.
If it's an improvement, then make a PR.
done
No branches or pull requests
Testing on Debian bullseye, the position of the dropdown popup window is wrong. The following
patch makes it better:
Horizontal position is now correct, but the windows has still the wrong vertical position (off by about the size of the window decorations).
The text was updated successfully, but these errors were encountered: