소스 검색

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

FabianLars 4 년 전
부모
커밋
e3f9916526
3개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 0
      .changes/fix-min-height-typo.md
  2. 1 1
      core/tauri-runtime/src/webview.rs
  3. 1 1
      core/tauri-utils/src/config.rs

+ 7 - 0
.changes/fix-min-height-typo.md

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

+ 1 - 1
core/tauri-runtime/src/webview.rs

@@ -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;

+ 1 - 1
core/tauri-utils/src/config.rs

@@ -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;