summaryrefslogtreecommitdiffstats
path: root/examples/todos/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-17 01:53:39 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-17 01:53:39 +0100
commit0ad40d03387a8127b445305a1c63fa3d2ac45ed7 (patch)
tree412d77a00dd9eea74a81c128a9db5ecef8951477 /examples/todos/src
parentb22a847668f3b59e1de77c2beee03134795f9380 (diff)
downloadiced-0ad40d03387a8127b445305a1c63fa3d2ac45ed7.tar.gz
iced-0ad40d03387a8127b445305a1c63fa3d2ac45ed7.tar.bz2
iced-0ad40d03387a8127b445305a1c63fa3d2ac45ed7.zip
Reduce size of `Simulator` in `todos` test
Diffstat (limited to 'examples/todos/src')
-rw-r--r--examples/todos/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index 1cc47782..0b80f002 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -594,11 +594,12 @@ mod tests {
use iced_test::{selector, Error, Simulator};
fn simulator(todos: &Todos) -> Simulator<Message> {
- Simulator::with_settings(
+ Simulator::with_size(
Settings {
fonts: vec![Todos::ICON_FONT.into()],
..Settings::default()
},
+ (512.0, 512.0),
todos.view(),
)
}