Skip to content

Commit 398add7

Browse files
committed
Assure Update window width does not break OpenQA
Refrence: #246 (comment)
1 parent add35fb commit 398add7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qui/updater/updater.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def cell_data_func(_column, cell, model, it, data):
227227
width = self.intro_page.vm_list.get_preferred_width().natural_width
228228
# Wide enough for details section to show update progress.
229229
# But still less than 1024 pixels to do not break OpenQA tests.
230-
width = max(width, 1000)
230+
width = min(max(width, 1000), self.main_window.get_screen().get_width())
231231
height = min(
232232
int(width * 1.2), self.main_window.get_screen().get_height() - 48
233233
)

0 commit comments

Comments
 (0)