Skip to content

Commit 1af77ee

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qui/updater/updater.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def cell_data_func(_column, cell, model, it, data):
228228
# Wide enough for details section to show update progress.
229229
# But still less than 1024 pixels to do not break OpenQA tests.
230230
width = max(width, 1000)
231+
width = min(width, self.main_window.get_screen().get_width() - 12)
231232
height = min(
232233
int(width * 1.2), self.main_window.get_screen().get_height() - 48
233234
)

0 commit comments

Comments
 (0)