mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-12-22 12:28:19 -06:00
fix align_test example
This commit is contained in:
parent
9f0809c61c
commit
7cd716b905
|
@ -43,7 +43,7 @@ fn main() {
|
|||
hui.add(Container {
|
||||
gap: 5.,
|
||||
padding: Sides::all(5.),
|
||||
align: (Alignment::Begin, Alignment::Center).into(),
|
||||
align: (Alignment::Center, Alignment::Begin).into(),
|
||||
size: (Size::Fraction(1.), Size::Fraction(1.)).into(),
|
||||
children: ElementList(vec![
|
||||
Box::new(ProgressBar {
|
||||
|
@ -57,7 +57,7 @@ fn main() {
|
|||
hui.add(Container {
|
||||
gap: 5.,
|
||||
padding: Sides::all(5.),
|
||||
align: (Alignment::End, Alignment::Center).into(),
|
||||
align: (Alignment::Center, Alignment::End).into(),
|
||||
size: (Size::Fraction(1.), Size::Fraction(1.)).into(),
|
||||
children: ElementList(vec![
|
||||
Box::new(ProgressBar {
|
||||
|
@ -67,7 +67,7 @@ fn main() {
|
|||
}),
|
||||
Box::new(Container {
|
||||
size: (Size::Fraction(1.), Size::Auto).into(),
|
||||
align: (Alignment::Center, Alignment::End).into(),
|
||||
align: (Alignment::End, Alignment::Center).into(),
|
||||
padding: Sides::all(5.),
|
||||
gap: 10.,
|
||||
children: ElementList(vec![
|
||||
|
|
Loading…
Reference in a new issue