summaryrefslogtreecommitdiffstats
path: root/examples/component/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-07 07:24:34 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-07 07:24:34 +0100
commitaa4b5bb6b962b48715023e3ce567d1a18473bffa (patch)
tree5dcb839dac56c81a9b9b618db86f67f3e72af9d3 /examples/component/src
parentd3900e067361c82fd857fc92b81284146140bc3b (diff)
parentdf68cca0c9dda051ae979ccc2f5ca8d37c3e3cb5 (diff)
downloadiced-aa4b5bb6b962b48715023e3ce567d1a18473bffa.tar.gz
iced-aa4b5bb6b962b48715023e3ce567d1a18473bffa.tar.bz2
iced-aa4b5bb6b962b48715023e3ce567d1a18473bffa.zip
Merge branch 'master' into feature/software-renderer
Diffstat (limited to 'examples/component/src')
-rw-r--r--examples/component/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/component/src/main.rs b/examples/component/src/main.rs
index e59588b1..09e5e4a2 100644
--- a/examples/component/src/main.rs
+++ b/examples/component/src/main.rs
@@ -120,7 +120,8 @@ mod numeric_input {
.horizontal_alignment(alignment::Horizontal::Center)
.vertical_alignment(alignment::Vertical::Center),
)
- .width(50)
+ .width(40)
+ .height(40)
.on_press(on_press)
};
@@ -138,7 +139,7 @@ mod numeric_input {
.padding(10),
button("+", Event::IncrementPressed),
]
- .align_items(Alignment::Fill)
+ .align_items(Alignment::Center)
.spacing(10)
.into()
}