Commit 93a747d
committed
Fix critical node sizing validation during file loading
- Add load-time size validation to prevent undersized nodes from files
- Calculate minimum size requirements and auto-correct loaded dimensions
- Add critical deferred validation after GUI construction completes
- Fix timing issue where GUI widgets affect minimum size calculations
- Add final_load_update() validation pass for accurate sizing
- Debug logging for size corrections and validation steps
Resolves the "nagging bug" where nodes loaded from files were smaller
than their content requirements, causing GUI elements to be crushed
and pins to be positioned incorrectly until manual resize.
The key insight: minimum size calculations change as GUI widgets are
constructed, requiring a second validation pass after Qt event loop
processes all pending widget creation and sizing events.
🤖 Generated with [Claude Code](https://claude.ai/code)1 parent e922215 commit 93a747d
1 file changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
244 | 260 | | |
245 | 261 | | |
246 | 262 | | |
| |||
273 | 289 | | |
274 | 290 | | |
275 | 291 | | |
| 292 | + | |
| 293 | + | |
276 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
277 | 311 | | |
278 | 312 | | |
279 | 313 | | |
| |||
0 commit comments