forge
Explore
Log in

Don't you dare go Hollow

Always honor min height in new window size

Browse files at this commit

f2bec1f82f928f48e6ad9aa7dfae4760876ceeffIvan MolodetskikhParent: 1046019
src/layout/workspace.rsmodified+4 -0
@@ -1,3 +1,4 @@
1+use std::cmp::max;
1 use std::rc::Rc;2 use std::rc::Rc;
2 use std::time::Duration;3 use std::time::Duration;
3 4
@@ -701,6 +702,9 @@ impl<W: LayoutElement> Workspace<W> {
701 // will only honor fixed height currently.702 // will only honor fixed height currently.
702 if min_size.h == max_size.h {703 if min_size.h == max_size.h {
703 size.h = ensure_min_max_size(size.h, min_size.h, max_size.h);704 size.h = ensure_min_max_size(size.h, min_size.h, max_size.h);
705+ } else if size.h > 0 {
706+ // Also always honor min height, scrolling always does.
707+ size.h = max(size.h, min_size.h);
704 }708 }
705 709
706 size710 size