Add leeway support to PaneGrid::on_resize

This commit is contained in:
Héctor Ramón Jiménez 2020-06-08 18:25:23 +02:00
parent 041cab0fa4
commit be0cc2c780
2 changed files with 19 additions and 11 deletions

View file

@ -103,7 +103,7 @@ impl Sandbox for Example {
.height(Length::Fill)
.spacing(10)
.on_drag(Message::Dragged)
.on_resize(Message::Resized)
.on_resize(10, Message::Resized)
.on_key_press(handle_hotkey);
Container::new(pane_grid)