mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 03:02:28 +03:00
fix(core) minHeight being used as maxHeight (#2247)
This commit is contained in:
parent
4f88c3fb94
commit
e3f9916526
7
.changes/fix-min-height-typo.md
Normal file
7
.changes/fix-min-height-typo.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
"tauri-utils": patch
|
||||
"tauri-runtime": patch
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fixes minimum window height being used as maximum height.
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user