(self)
| 213 | self.fit_size_to_content() |
| 214 | |
| 215 | def _calculate_minimum_height(self): |
| 216 | title_height, pin_spacing, pin_margin_top = 32, 25, 15 |
| 217 | num_pins = max(len(self.input_pins), len(self.output_pins)) |
| 218 | pin_area_height = (num_pins * pin_spacing) if num_pins > 0 else 0 |
| 219 | |
| 220 | self.content_container.layout().activate() |
| 221 | content_height = self.content_container.sizeHint().height() |
| 222 | |
| 223 | return title_height + pin_area_height + pin_margin_top + content_height + 1 |
| 224 | |
| 225 | def calculate_absolute_minimum_size(self): |
| 226 | """Calculate the absolute minimum size needed for this node's content. |
no test coverage detected