Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit 21568b6

Browse files
committed
Fix Split's split position calculation
1 parent f843bcd commit 21568b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcw3/src/ui/views/split.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ fn get_split_position(
324324
st_max: [f32; 2],
325325
splitter_width: f32,
326326
) -> (f32, bool, bool) {
327-
let mut min = [st_min[0], size - splitter_width - st_max[0]].fmax();
328-
let mut max = [st_max[0], size - splitter_width - st_min[0]].fmin();
327+
let mut min = [st_min[0], size - splitter_width - st_max[1]].fmax();
328+
let mut max = [st_max[0], size - splitter_width - st_min[1]].fmin();
329329

330330
// Make sure the first panel's size is rounded
331331
min = min.ceil();

0 commit comments

Comments
 (0)