From dd3d6aa7c5b2ff0d88449ab2eb673ad6b18511f9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 29 Mar 2023 19:07:23 +0200 Subject: [PATCH] Updated a code comment in GuiScraperSearch --- es-app/src/guis/GuiScraperSearch.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index 094a8f997..0c2a14163 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -208,9 +208,8 @@ void GuiScraperSearch::onSizeChanged() const float thumbnailCellScale {0.93f}; - // Limit thumbnail size using setMaxHeight - we do this instead of letting mGrid - // call setSize because it maintains the aspect ratio. - // We also pad a little so it doesn't rub up against the metadata labels. + // Limit the thumbnail size using setMaxSize so the aspect ratio is maintained, and also + // add some padding mResultThumbnail->setMaxSize(mGrid.getColWidth(1) * thumbnailCellScale, mGrid.getRowHeight(1)); // Metadata.