Skip to content

Commit e3f9916

Browse files
authored
fix(core) minHeight being used as maxHeight (#2247)
1 parent 4f88c3f commit e3f9916

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changes/fix-min-height-typo.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"tauri-utils": patch
3+
"tauri-runtime": patch
4+
"tauri": patch
5+
---
6+
7+
Fixes minimum window height being used as maximum height.

core/tauri-runtime/src/webview.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub trait WindowBuilder: WindowBuilderBase {
124124
fn min_inner_size(self, min_width: f64, min_height: f64) -> Self;
125125

126126
/// Window max inner size.
127-
fn max_inner_size(self, min_width: f64, min_height: f64) -> Self;
127+
fn max_inner_size(self, max_width: f64, max_height: f64) -> Self;
128128

129129
/// Whether the window is resizable or not.
130130
fn resizable(self, resizable: bool) -> Self;

core/tauri-utils/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ mod build {
672672
let min_width = opt_lit(self.min_width.as_ref());
673673
let min_height = opt_lit(self.min_height.as_ref());
674674
let max_width = opt_lit(self.max_width.as_ref());
675-
let max_height = opt_lit(self.min_height.as_ref());
675+
let max_height = opt_lit(self.max_height.as_ref());
676676
let resizable = self.resizable;
677677
let title = str_lit(&self.title);
678678
let fullscreen = self.fullscreen;

0 commit comments

Comments
 (0)