Merge remote-tracking branch 'origin/master' into feat/multi-window-support
This commit is contained in:
commit
9565b477ca
38 changed files with 162 additions and 109 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue