fix(core) minHeight being used as maxHeight (#2247)

This commit is contained in:
FabianLars 2021-07-19 19:24:03 +02:00 committed by GitHub
parent 4f88c3fb94
commit e3f9916526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,7 @@
---
"tauri-utils": patch
"tauri-runtime": patch
"tauri": patch
---
Fixes minimum window height being used as maximum height.

View File

@ -124,7 +124,7 @@ pub trait WindowBuilder: WindowBuilderBase {
fn min_inner_size(self, min_width: f64, min_height: f64) -> Self;
/// Window max inner size.
fn max_inner_size(self, min_width: f64, min_height: f64) -> Self;
fn max_inner_size(self, max_width: f64, max_height: f64) -> Self;
/// Whether the window is resizable or not.
fn resizable(self, resizable: bool) -> Self;

View File

@ -672,7 +672,7 @@ mod build {
let min_width = opt_lit(self.min_width.as_ref());
let min_height = opt_lit(self.min_height.as_ref());
let max_width = opt_lit(self.max_width.as_ref());
let max_height = opt_lit(self.min_height.as_ref());
let max_height = opt_lit(self.max_height.as_ref());
let resizable = self.resizable;
let title = str_lit(&self.title);
let fullscreen = self.fullscreen;