Skip to content

Commit

Permalink
Merge pull request #265 from rizzen-yazston/main
Browse files Browse the repository at this point in the history
Corrected issue in 'layout()' of 'FlushColumn' and 'FlushRow'.
  • Loading branch information
genusistimelord authored Jul 19, 2024
2 parents 371aa8a + 504939d commit 8a2a701
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 8a2a701

Please sign in to comment.