From 757b5c12273cc1b4de8007b7c3f8536b699d2600 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 19 Oct 2023 20:16:01 +0200 Subject: Fix ctrl/+/- in cube demo - Fl_Grid: force layout() on resize() - needed for GL subwindows - test/cube.cxx: - use end() in constructor of class cube_box - ensure not to change the current group when adding a button --- src/Fl_Grid.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Grid.cxx b/src/Fl_Grid.cxx index 2952badc3..e88a0461e 100644 --- a/src/Fl_Grid.cxx +++ b/src/Fl_Grid.cxx @@ -587,7 +587,7 @@ void Fl_Grid::remove_cell(int row, int col) { void Fl_Grid::resize(int X, int Y, int W, int H) { old_size = Fl_Rect(x(), y(), w(), h()); Fl_Widget::resize(X, Y, W, H); - need_layout(1); + layout(); } /** -- cgit v1.2.3