summaryrefslogtreecommitdiffstats
path: root/examples/websocket
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-27 16:49:25 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-27 16:54:28 +0100
commit9e815cb749f1bf6bce0232e870be266aca0c0742 (patch)
treea8947e78efcd14435e47f4b2db89d2c58e4471ec /examples/websocket
parent5f93437285c4451a8b5ffac1b3c9e1b91e8a5918 (diff)
downloadiced-9e815cb749f1bf6bce0232e870be266aca0c0742.tar.gz
iced-9e815cb749f1bf6bce0232e870be266aca0c0742.tar.bz2
iced-9e815cb749f1bf6bce0232e870be266aca0c0742.zip
Remove `Fill` variant for `Alignment`
Implementing this generically in our `flex` logic has an exponential cost. Let's explore other options!
Diffstat (limited to 'examples/websocket')
-rw-r--r--examples/websocket/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs
index ccd9c815..e617b8ce 100644
--- a/examples/websocket/src/main.rs
+++ b/examples/websocket/src/main.rs
@@ -146,7 +146,9 @@ impl Application for WebSocket {
}
}
- row![input, button].spacing(10).align_items(Alignment::Fill)
+ row![input, button]
+ .spacing(10)
+ .align_items(Alignment::Center)
};
column![message_log, new_message_input]