Skip to content

Commit

Permalink
Fix element buttons missing from element search
Browse files Browse the repository at this point in the history
Visible since c3cd4f1, which made element search scrollable.

The last row of buttons was only shown if it had exactly as many buttons as many fit.
  • Loading branch information
LBPHacker committed Mar 5, 2024
1 parent c85ebe4 commit 82bcb0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/elementsearch/ElementSearchActivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ void ElementSearchActivity::searchTools(String query)
}
}

scrollPanel->InnerSize = ui::Point(scrollPanel->Size.X, current.Y + 1);
if (current.X == 0)
{
current.Y -= 19;
}
scrollPanel->InnerSize = ui::Point(scrollPanel->Size.X, current.Y + 20);
}

void ElementSearchActivity::SetActiveTool(int selectionState, Tool * tool)
Expand Down

0 comments on commit 82bcb0e

Please sign in to comment.