fix(pane_grid): layout typo
This commit is contained in:
parent
4516691f35
commit
14cefe034e
1 changed files with 1 additions and 1 deletions
|
|
@ -1111,7 +1111,7 @@ fn click_pane<'a, Message, T>(
|
||||||
{
|
{
|
||||||
let mut clicked_region = contents
|
let mut clicked_region = contents
|
||||||
.zip(layout.children())
|
.zip(layout.children())
|
||||||
.filter(|(_, c_layout)| layout.bounds().contains(cursor_position));
|
.filter(|(_, c_layout)| c_layout.bounds().contains(cursor_position));
|
||||||
|
|
||||||
if let Some(((pane, content), c_layout)) = clicked_region.next() {
|
if let Some(((pane, content), c_layout)) = clicked_region.next() {
|
||||||
if let Some(on_click) = &on_click {
|
if let Some(on_click) = &on_click {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue