From cf750b5d3f4a4c0d8685875c27454ef04a5f3897 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 9 Jan 2021 15:05:31 +0100 Subject: [PATCH] Chess: Fix button size in the piece promotion dialog Fixes #4865. --- Games/Chess/PromotionDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Games/Chess/PromotionDialog.cpp b/Games/Chess/PromotionDialog.cpp index e106b88ca0..17e1e7a004 100644 --- a/Games/Chess/PromotionDialog.cpp +++ b/Games/Chess/PromotionDialog.cpp @@ -44,6 +44,7 @@ PromotionDialog::PromotionDialog(ChessWidget& chess_widget) for (auto& type : Vector({ Chess::Type::Queen, Chess::Type::Knight, Chess::Type::Rook, Chess::Type::Bishop })) { auto& button = main_widget.add(""); + button.set_fixed_height(70); button.set_icon(chess_widget.get_piece_graphic({ chess_widget.board().turn(), type })); button.on_click = [this, type](auto) { m_selected_piece = type;