diff --git a/src/client/panels/MainGamePanelWizard.cpp b/src/client/panels/MainGamePanelWizard.cpp index f17e836134ab448a99403f0dbdc6d9e56649f70f..9d8f3b11fee446bed2f057e2d3d2d16629c9c94a 100644 --- a/src/client/panels/MainGamePanelWizard.cpp +++ b/src/client/panels/MainGamePanelWizard.cpp @@ -176,7 +176,7 @@ void MainGamePanelWizard::buildScoreLeaveButtons(wxGridBagSizer *sizer, game_sta { wxButton *scoreBoardButton = new wxButton(panel, wxID_ANY, "ScoreBoard"); scoreBoardButton->SetMinSize(wxSize(110, 43)); //90 , 35 - sizer_hor->Add(scoreBoardButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); + sizer_vert->Add(scoreBoardButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); scoreBoardButton->SetFont(magicalFont); scoreBoardButton->SetForegroundColour(wxColour(225, 225, 225)); // Set button text color @@ -189,7 +189,7 @@ void MainGamePanelWizard::buildScoreLeaveButtons(wxGridBagSizer *sizer, game_sta } wxButton *leaveGameButton = new wxButton(panel, wxID_ANY, "Leave Game"); leaveGameButton->SetMinSize(wxSize(110, 43)); - sizer_hor->Add(leaveGameButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); + sizer_vert->Add(leaveGameButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); leaveGameButton->SetFont(magicalFont); leaveGameButton->SetBackgroundColour(wxColour(50,0,51)); // Set background color to blue diff --git a/src/client/panels/TrickEstimationPanel.cpp b/src/client/panels/TrickEstimationPanel.cpp index 79e7092087ed0d5378b5681b11ac204684d5351c..a29ca2b4973b1452c5cbcc191260b1cca073375c 100644 --- a/src/client/panels/TrickEstimationPanel.cpp +++ b/src/client/panels/TrickEstimationPanel.cpp @@ -121,7 +121,7 @@ void TrickEstimationPanel::buildScoreLeaveButtons(wxGridBagSizer *sizer, game_st wxButton* scoreBoardButton = new wxButton(panel, wxID_ANY, "ScoreBoard"); scoreBoardButton->SetMinSize(wxSize(110, 43)); //90 35 - sizer_hor->Add(scoreBoardButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); + sizer_vert->Add(scoreBoardButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); scoreBoardButton->SetFont(magicalFontTrick); scoreBoardButton->SetForegroundColour(wxColour(225, 225, 225)); // Set button text color scoreBoardButton->SetBackgroundColour(wxColour(50, 0, 51)); //make button same purple as estimation panel once clickable @@ -133,7 +133,7 @@ void TrickEstimationPanel::buildScoreLeaveButtons(wxGridBagSizer *sizer, game_st wxButton *leaveGameButton = new wxButton(panel, wxID_ANY, "Leave Game"); leaveGameButton->SetMinSize(wxSize(110, 43)); - sizer_hor->Add(leaveGameButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); + sizer_vert->Add(leaveGameButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3); leaveGameButton->SetFont(magicalFontTrick); leaveGameButton->SetBackgroundColour(wxColour(50,0,51)); // Set background color to blue