Commit b772455
Graph Health: shrink the dead/cycle box with the node when collapsed
The dashed dead-node box (and cycle box) drew at node.size, but LiteGraph keeps
node.size at the expanded size while a collapsed node renders only its title
pill -- so the box stayed full-size on minimise. Use collapsed width + title
height when node.flags.collapsed, and skip the dangling-slot dots (no visible
slots when collapsed).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit dadef39)1 parent 5924b90 commit b772455
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
203 | 216 | | |
204 | 217 | | |
205 | | - | |
| 218 | + | |
206 | 219 | | |
207 | 220 | | |
208 | | - | |
| 221 | + | |
209 | 222 | | |
210 | 223 | | |
211 | 224 | | |
212 | | - | |
| 225 | + | |
213 | 226 | | |
214 | | - | |
| 227 | + | |
215 | 228 | | |
216 | 229 | | |
217 | 230 | | |
| |||
0 commit comments