shell: Enforce some minimum resize sizes
This commit is contained in:
parent
0ebcfa24a3
commit
92019b4286
3 changed files with 23 additions and 4 deletions
|
|
@ -1536,7 +1536,12 @@ impl TilingLayout {
|
|||
};
|
||||
|
||||
let old_size = sizes[shrink_idx];
|
||||
sizes[shrink_idx] = (old_size - amount).max(10);
|
||||
sizes[shrink_idx] =
|
||||
(old_size - amount).max(if orientation == Orientation::Vertical {
|
||||
360
|
||||
} else {
|
||||
240
|
||||
});
|
||||
let diff = old_size - sizes[shrink_idx];
|
||||
sizes[grow_idx] += diff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue