Update vdiclient.py

#Fixed Window sizing problem when having more than 5 VMs
This commit is contained in:
BrickMyPhone authored and GitHub committed 2023-09-22 11:31:03 +02:00
1 parent e8bdbdf67c
commit ff44f186c2
1 file changed
+1 -1
+1 -1
View File
@@ -255,7 +255,7 @@ def setvmlayout(vms):
layoutcolumn.append(tmplayout) layoutcolumn.append(tmplayout)
layoutcolumn.append([sg.HorizontalSeparator()]) layoutcolumn.append([sg.HorizontalSeparator()])
if len(vms) > 5: # We need a scrollbar 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: else:
for row in layoutcolumn: for row in layoutcolumn:
layout.append(row) layout.append(row)