From dc28eaac8c4e3979417513b878892c0396dde625 Mon Sep 17 00:00:00 2001 From: Ali Mirjamali Date: Mon, 17 Feb 2025 14:18:14 +0330 Subject: [PATCH] Make updater width enoguh for update details --- qui/updater/updater.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qui/updater/updater.py b/qui/updater/updater.py index fe231664..d557d47d 100644 --- a/qui/updater/updater.py +++ b/qui/updater/updater.py @@ -225,6 +225,9 @@ def cell_data_func(_column, cell, model, it, data): self.log.info("Show intro page.") self.main_window.show_all() width = self.intro_page.vm_list.get_preferred_width().natural_width + # Wide enough for details section to show update progress. + # But still less than 1024 pixels to do not break OpenQA tests. + width = max(width, 1000) height = min( int(width * 1.2), self.main_window.get_screen().get_height() - 48 )