aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/workspace.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs
index 1e1ded9d..1cc38ff6 100644
--- a/src/layout/workspace.rs
+++ b/src/layout/workspace.rs
@@ -1,3 +1,4 @@
+use std::cmp::max;
use std::rc::Rc;
use std::time::Duration;
@@ -701,6 +702,9 @@ impl<W: LayoutElement> Workspace<W> {
// will only honor fixed height currently.
if min_size.h == max_size.h {
size.h = ensure_min_max_size(size.h, min_size.h, max_size.h);
+ } else if size.h > 0 {
+ // Also always honor min height, scrolling always does.
+ size.h = max(size.h, min_size.h);
}
size