mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-06 04:18:36 -06:00
Correctly set the height of the LuaConsole (closes #1375)
This commit is contained in:
@@ -600,7 +600,9 @@ void LuaConsole::update() {
|
||||
// what the bounding box for that text would be.
|
||||
using namespace ghoul::fontrendering;
|
||||
|
||||
const float height = _historyFont->height() * (_commandsHistory.size() + 1);
|
||||
const float height =
|
||||
_historyFont->height() *
|
||||
(std::min(static_cast<int>(_commandsHistory.size()), _historyLength.value()) + 1);
|
||||
|
||||
// Update the full height and the target height.
|
||||
// Add the height of the entry line and space for a separator.
|
||||
|
||||
Reference in New Issue
Block a user