Update vdiclient.py

#Fixed Window sizing problem when having more than 5 VMs
This commit is contained in:
BrickMyPhone 2023-09-22 11:31:03 +02:00 committed by GitHub
parent e8bdbdf67c
commit ff44f186c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ def setvmlayout(vms):
layoutcolumn.append(tmplayout)
layoutcolumn.append([sg.HorizontalSeparator()])
if len(vms) > 5: # We need a scrollbar
layout.append([sg.Column(layoutcolumn, scrollable = True, size = [450*G.scaling, None] )])
layout.append([sg.Column(layoutcolumn, scrollable = True, size = [None, None] )])
else:
for row in layoutcolumn:
layout.append(row)