Browse Source

patchcanvas: Fix some groupos with inline display becoming too small

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 5 years ago
parent
commit
de999bf479
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/frontend/patchcanvas/canvasbox.py

+ 1
- 1
source/frontend/patchcanvas/canvasbox.py View File

@@ -778,7 +778,7 @@ class CanvasBox(QGraphicsObject):
self.m_inline_first = False
aspectRatio = data['width'] / data['height']
self.p_height = int(max(50*scaling, self.p_height))
self.p_width += int(min((80 - 14)*scaling, (inheight-inwidth) * aspectRatio * scaling))
self.p_width += int(max(0, min((80 - 14)*scaling, (inheight-inwidth) * aspectRatio * scaling)))
self.repositionPorts()
self.repaintLines(True)
self.update()


Loading…
Cancel
Save