FLTK logo

[branch-1.4] 7884d55 - Backport 2803f70

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.commit  ]
 
[ Previous Message ] [ Next Message ]

[branch-1.4] 7884d55 - Backport 2803f70 "Matthias Melcher" Jul 16, 2025  
 
commit 7884d55c1a0d8fd2b1c16abbf31ed76993dc1d64
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Wed Jul 16 12:47:40 2025 +0200
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Wed Jul 16 12:47:40 2025 +0200

    Backport 2803f70
    
    #1114: Ensure minimum height of last block in Fl_Help_View

 src/Fl_Help_View.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git src/Fl_Help_View.cxx src/Fl_Help_View.cxx
index 3c1081d..811b13e 100644
--- src/Fl_Help_View.cxx
+++ src/Fl_Help_View.cxx
@@ -1989,6 +1989,9 @@ void Fl_Help_View::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_);
 
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.