From 76ac4d1bd7f90d38f7d31c4b97ca13ea48c36c13 Mon Sep 17 00:00:00 2001 From: gvnnz Date: Fri, 8 Dec 2023 21:36:51 +0100 Subject: [PATCH] Fix resizer bar height in geKeyboard --- src/gui/elems/mainWindow/keyboard/keyboard.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/elems/mainWindow/keyboard/keyboard.cpp b/src/gui/elems/mainWindow/keyboard/keyboard.cpp index 3adc7ef7f..173260834 100644 --- a/src/gui/elems/mainWindow/keyboard/keyboard.cpp +++ b/src/gui/elems/mainWindow/keyboard/keyboard.cpp @@ -400,7 +400,9 @@ void geKeyboard::addColumn(int width, ID id) /* Add a new column + a new resizer bar. */ - geResizerBar* bar = new geResizerBar(colx + width, y(), COLUMN_GAP, h(), G_MIN_COLUMN_WIDTH, Direction::HORIZONTAL); + const int viewportH = getViewportBounds().h; + + geResizerBar* bar = new geResizerBar(colx + width, y(), COLUMN_GAP, viewportH, G_MIN_COLUMN_WIDTH, Direction::HORIZONTAL); geColumn* column = new geColumn(colx, y(), width, 0, m_columnId.generate(id), bar); /* Store the column width in the model when the resizer bar is released. */