eric6/Graphics/PackageItem.py

changeset 8217
385f60c94548
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8216:6a042a54e0f7 8217:385f60c94548
128 128
129 width = self.header.boundingRect().width() 129 width = self.header.boundingRect().width()
130 height = self.header.boundingRect().height() 130 height = self.header.boundingRect().height()
131 if self.modules: 131 if self.modules:
132 width = max(width, self.modules.boundingRect().width()) 132 width = max(width, self.modules.boundingRect().width())
133 height = height + self.modules.boundingRect().height() 133 height += self.modules.boundingRect().height()
134 latchW = width / 3.0 134 latchW = width / 3.0
135 latchH = min(15.0, latchW) 135 latchH = min(15.0, latchW)
136 self.setSize(width + 2 * self.margin, 136 self.setSize(width + 2 * self.margin,
137 height + latchH + 2 * self.margin) 137 height + latchH + 2 * self.margin)
138 138

eric ide

mercurial