Merge remote-tracking branch 'origin/master' into feat/multi-window-support

This commit is contained in:
Bingus 2023-02-20 10:04:36 -08:00
commit 9565b477ca
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
38 changed files with 162 additions and 109 deletions

View file

@ -6,7 +6,7 @@
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
//! drag and drop, and hotkey support.
//!
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.7/examples/pane_grid
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.8/examples/pane_grid
mod axis;
mod configuration;
mod content;

View file

@ -421,8 +421,8 @@ pub fn draw<T, R>(
let handle_offset = if range_start >= range_end {
0.0
} else {
bounds.width * (value - range_start) / (range_end - range_start)
- handle_width / 2.0
(bounds.width - handle_width) * (value - range_start)
/ (range_end - range_start)
};
renderer.fill_quad(

View file

@ -416,8 +416,8 @@ pub fn draw<T, R>(
let handle_offset = if range_start >= range_end {
0.0
} else {
bounds.height * (value - range_end) / (range_start - range_end)
- handle_width / 2.0
(bounds.height - handle_width) * (value - range_end)
/ (range_start - range_end)
};
renderer.fill_quad(