FLTK logo

[master] 9a326db - Account for presence of terminal panel in the size_range() call.

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

[master] 9a326db - Account for presence of terminal panel in the size_range() call. "ManoloFLTK" Feb 08, 2022  
 
commit 9a326dbe012a2ac180cf4350c8199a9550e836f4
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Feb 8 18:56:59 2022 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Feb 8 18:56:59 2022 +0100

    Account for presence of terminal panel in the size_range() call.

 test/menubar.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git test/menubar.cxx test/menubar.cxx
index 7a4f4d8..d36c3e9 100644
--- test/menubar.cxx
+++ test/menubar.cxx
@@ -252,7 +252,7 @@ int main(int argc, char **argv) {
   menus[3] = &mb;
   Fl_Box b(200,200,200,100,"Press right button\nfor a pop-up menu");
   window.resizable(&mb);
-  window.size_range(300,400,0,400);
+  window.size_range(300,400,0,400+TERMINAL_HEIGHT);
 #ifdef __APPLE__
   Fl_Choice ch2(500,100,150,25,"Use:");
   ch2.menu(menu_location);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

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