summaryrefslogtreecommitdiffstats
path: root/examples/component/src/main.rs
diff options
context:
space:
mode:
authorLibravatar bungoboingo <shankern@protonmail.com>2023-02-28 13:08:30 -0800
committerLibravatar bungoboingo <shankern@protonmail.com>2023-02-28 13:08:30 -0800
commit51296572c0189eaef8081c46270ff48b7e03258d (patch)
tree067b3a9102f92e4869f2a63d739a49379a9fb481 /examples/component/src/main.rs
parenta131f11a23d3430df58bf67a7c89f4b2284822af (diff)
parent86b85d1436a44e82a9765f9d82b026faf26e22de (diff)
downloadiced-51296572c0189eaef8081c46270ff48b7e03258d.tar.gz
iced-51296572c0189eaef8081c46270ff48b7e03258d.tar.bz2
iced-51296572c0189eaef8081c46270ff48b7e03258d.zip
Merge remote-tracking branch 'iced-main/master' into feat/multi-window-support
# Conflicts: # glutin/src/application.rs # winit/src/icon.rs
Diffstat (limited to 'examples/component/src/main.rs')
-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 c407bb06..bbf549e7 100644
--- a/examples/component/src/main.rs
+++ b/examples/component/src/main.rs
@@ -127,7 +127,8 @@ mod numeric_input {
.horizontal_alignment(alignment::Horizontal::Center)
.vertical_alignment(alignment::Vertical::Center),
)
- .width(50)
+ .width(40)
+ .height(40)
.on_press(on_press)
};
@@ -145,7 +146,7 @@ mod numeric_input {
.padding(10),
button("+", Event::IncrementPressed),
]
- .align_items(Alignment::Fill)
+ .align_items(Alignment::Center)
.spacing(10)
.into()
}