mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Upgrade rectangle-packer to 2.0.1; remove bug workaround
This commit is contained in:
parent
34f25d3fb6
commit
6118acedc5
2 changed files with 1 additions and 6 deletions
|
|
@ -165,11 +165,6 @@ class BeeGraphicsScene(QtWidgets.QGraphicsScene):
|
|||
except rpack.PackingImpossibleError:
|
||||
width = math.ceil(width * 1.2)
|
||||
|
||||
if rpack.overlapping(sizes, positions):
|
||||
# Bug in rpack:
|
||||
# https://github.com/Penlect/rectangle-packer/issues/13
|
||||
positions = [(p[1], p[0]) for p in positions]
|
||||
|
||||
# We want the items to center around the selection's center,
|
||||
# not (0, 0)
|
||||
bounds = rpack.bbox_size(sizes, positions)
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -10,7 +10,7 @@ setup(
|
|||
description='A simple reference image viewer',
|
||||
install_requires=[
|
||||
'pyQt6>=6.1',
|
||||
'rectangle-packer>=2.0.0',
|
||||
'rectangle-packer>=2.0.1',
|
||||
],
|
||||
packages=['beeref'],
|
||||
entry_points={
|
||||
|
|
|
|||
Loading…
Reference in a new issue