Skip to content

Commit

Permalink
Set iconview cell width
Browse files Browse the repository at this point in the history
* Stop item sideway movement when rendering thumbnails
  • Loading branch information
kbengs authored and jeromerobert committed May 31, 2020
1 parent 29b35a0 commit 3b641f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdfarranger/pdfarranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ def on_window_size_request(self, window):
border_and_shadow = 7 # 2*th1+th2 set in iconview.py
# cell width min limit 50 is set in gtkiconview.c
cell_width = max(item_width + 2 * cellthmb_xpad + border_and_shadow, 50)
self.cellthmb.set_fixed_size(cell_width, -1)
padded_cell_width = cell_width + 2 * item_padding
min_col_spacing = 5
min_margin = 11
Expand Down

0 comments on commit 3b641f5

Please sign in to comment.