From 7a1c94ce20065da3e64904aacb90e0b09efaf637 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Tue, 21 Mar 2017 21:23:59 -0600 Subject: [PATCH] Automatically place calculator and editor --- src/calculator/main.rs | 2 +- src/editor/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calculator/main.rs b/src/calculator/main.rs index 4466ebd..b27dc96 100644 --- a/src/calculator/main.rs +++ b/src/calculator/main.rs @@ -278,7 +278,7 @@ fn eval(input: &str) -> String { } fn main(){ - let mut window = Window::new(Rect::new(100, 100, 148, 210), "Calculator"); + let mut window = Window::new(Rect::new(-1, -1, 148, 210), "Calculator"); { let text_box = TextBox::new(); diff --git a/src/editor/main.rs b/src/editor/main.rs index bf0899a..6f2383f 100644 --- a/src/editor/main.rs +++ b/src/editor/main.rs @@ -83,7 +83,7 @@ fn main(){ let save_as_path_option = path_option.clone(); save_as_action.on_click(move |_action: &Action, _point: Point| { println!("Save As"); - let mut window = Window::new(Rect::new(100, 100, 320, 32), "Save As"); + let mut window = Window::new(Rect::new(-1, -1, 320, 32), "Save As"); let text_box = TextBox::new(); text_box.position(0, 0) -- GitLab