Skip to content

Commit 65a54ec

Browse files
committed
Fix running providers before call to init()
1 parent 5bc6112 commit 65a54ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/brunomnsilva/smartgraph/graphview/SmartGraphPanel.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ public void init() throws IllegalStateException {
424424
timer.start();
425425
}
426426

427+
// If vertex/label shape/radius/etc. providers are set before the call to init(),
428+
// we must update before the first layout of the panel.
429+
updateNodes();
430+
427431
this.initialized = true;
428432
}
429433

0 commit comments

Comments
 (0)