From d9702ff5617f1646a36dc97ffa51459d31e1df7d Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 5 May 2021 15:27:47 +0100 Subject: [PATCH] Spreadsheet: Use shrink-to-fit for cell fg/bg color input layout This fixes an issue where the bottom of both color inputs was cut off due to insufficient, hardcoded height. --- Userland/Applications/Spreadsheet/CellTypeDialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Userland/Applications/Spreadsheet/CellTypeDialog.cpp b/Userland/Applications/Spreadsheet/CellTypeDialog.cpp index ab5ab1356b..d04820a8d0 100644 --- a/Userland/Applications/Spreadsheet/CellTypeDialog.cpp +++ b/Userland/Applications/Spreadsheet/CellTypeDialog.cpp @@ -264,7 +264,6 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, const Vector& po { auto& static_formatting_container = colors_tab.add(); static_formatting_container.set_layout(); - static_formatting_container.set_shrink_to_fit(true); // Foreground { @@ -272,7 +271,7 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, const Vector& po auto& foreground_container = static_formatting_container.add(); foreground_container.set_layout(); foreground_container.layout()->set_margins({ 0, 4, 0, 0 }); - foreground_container.set_fixed_height(22); + foreground_container.set_shrink_to_fit(true); auto& foreground_label = foreground_container.add(); foreground_label.set_text_alignment(Gfx::TextAlignment::CenterLeft); @@ -292,7 +291,7 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, const Vector& po auto& background_container = static_formatting_container.add(); background_container.set_layout(); background_container.layout()->set_margins({ 0, 4, 0, 0 }); - background_container.set_fixed_height(22); + background_container.set_shrink_to_fit(true); auto& background_label = background_container.add(); background_label.set_text_alignment(Gfx::TextAlignment::CenterLeft);