Should I really call something the "empty box" problem?

This commit is contained in:
BasioMeusPuga
2017-11-11 09:49:08 +05:30
parent 28bfcc4f52
commit 690c63f002
3 changed files with 13 additions and 6 deletions

View File

@@ -128,7 +128,10 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
# The rest is illustrated using informative variable names
space_occupied = num_images * default_size
space_left = (
self.listView.viewport().width() - space_occupied - 19) # 19 is the scrollbar width
self.listView.viewport().width() - space_occupied - 19) # 12 is the scrollbar width
# Larger numbers keep reduce
# flickering but also increase
# the distance from the scrollbar
try:
layout_extra_space_per_image = space_left // num_images
self.listView.setGridSize(