add default size and disable resizable
@@ -242,7 +242,10 @@ fn build_calc() -> impl Widget<CalcState> {
}
fn main() {
- let window = WindowDesc::new(build_calc).title(
+ let window = WindowDesc::new(build_calc)
+ .window_size((223., 300.))
+ .resizable(false)
+ .title(
LocalizedString::new("calc-demo-window-title").with_placeholder("Simple Calculator"),
);
let calc_state = CalcState {
