Skip to content

Commit f91c054

Browse files
committed
Correct sizing of profiles grid for logit with strategic forms.
The dialog for listing the computed profile probabilities for logit equilibria for strategic forms sometimes did not size correctly (and was tiny). This creates a sensible default size for the grid.
1 parent 6ad7010 commit f91c054

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixed
66
- Parsing of output of `gambit-logit` in the graphical interface did not handle the
77
terminal Nash profile correctly. (#172)
8+
- Improved sizing of list of logit profiles computed for normal form games.
89

910

1011
## [16.3.1] - 2025-08-18

src/gui/dlnfglogit.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ class LogitMixedSheet : public wxSheet {
119119

120120
LogitMixedSheet::LogitMixedSheet(wxWindow *p_parent, gbtGameDocument *p_doc,
121121
LogitMixedBranch &p_branch)
122-
: wxSheet(p_parent, wxID_ANY), m_doc(p_doc), m_branch(p_branch)
122+
: wxSheet(p_parent, wxID_ANY, wxDefaultPosition, wxSize(800, 600)), m_doc(p_doc),
123+
m_branch(p_branch)
123124
{
124125
CreateGrid(p_branch.NumPoints(), p_doc->GetGame()->MixedProfileLength() + 1);
125126
SetRowLabelWidth(40);
@@ -239,7 +240,7 @@ LogitBranchDialog::LogitBranchDialog(wxWindow *p_parent, gbtGameDocument *p_doc,
239240
m_sheet->AutoSizeCol(0);
240241

241242
auto *sizer = new wxBoxSizer(wxVERTICAL);
242-
sizer->Add(m_sheet, 0, wxALL, 5);
243+
sizer->Add(m_sheet, 0, wxEXPAND | wxALL, 5);
243244
sizer->Add(CreateButtonSizer(wxOK), 0, wxALL | wxEXPAND, 5);
244245

245246
SetSizer(sizer);

0 commit comments

Comments
 (0)