Skip to content

Commit

Permalink
Set default settings window min size to 100x100
Browse files Browse the repository at this point in the history
This works around layouts with no h-grow not properly shrinking the window.
  • Loading branch information
black-sliver committed Dec 11, 2024
1 parent 137b018 commit 0051666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/settingswindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Ui {

SettingsWindow::SettingsWindow(const char* title, SDL_Surface* icon, const Position& pos, const Size& size)
: TrackerWindow(title, icon, pos, size)
: TrackerWindow(title, icon, pos, {size.width < 1 ? 100 : size.width, size.height < 1 ? 100:size.height})
{
if (size.width<1 || size.height<1) resize({100,100});
}
Expand Down

0 comments on commit 0051666

Please sign in to comment.