summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-07-08 15:19:21 +0200
committerMatthias Melcher <github@matthiasm.com>2025-07-08 15:19:21 +0200
commit2803f70f584f3a3d88d02b122f44b90d15cc22c1 (patch)
tree29a3c03a87da2b4b3e599ae89e0b0f227044a777
parentd3dca073394196ae52f3cb8b42fde86f50c81ce5 (diff)
#1114: Ensure minimum height of last block in Fl_Help_View
-rw-r--r--src/Fl_Help_View.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index dec38a6a8..da436a5f5 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -1663,6 +1663,8 @@ void Fl_Help_View::Impl::format() {
block->end = ptr;
size_ = yy + hh;
}
+ // Make sure that the last block will have the correct height.
+ if (hh > block->h) block->h = hh;
// printf("margins.depth_=%d\n", margins.depth_);