Skip to content

Commit

Permalink
Corrected issue in 'layout()' of 'FlushColumn' and 'FlushRow'.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizzen-yazston committed Jul 19, 2024
1 parent 047b5a8 commit 504939d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/widgets/sidebar/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ where
if row_children.len() > 1 {
match self.align {
Alignment::Start => {
let element = row_children.first().expect("Always exists.");
let element = row_children.last().expect("Always exists.");
let bounds = element.bounds();
let mut position = bounds.position();
let mut element_node =
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/sidebar/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ where
if column_children.len() > 1 {
match self.align {
Alignment::Start => {
let element = column_children.first().expect("Always exists.");
let element = column_children.last().expect("Always exists.");
let bounds = element.bounds();
let mut position = bounds.position();
let mut element_node =
Expand Down

0 comments on commit 504939d

Please sign in to comment.