X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTRadioGroup.java;h=a82b074f8ce9a1c4fe6de462433b8d4124507b91;hb=8afe8fa7d778da9682b82b6ac56f64d765f6a2d1;hp=58c65e2b11eb679a4110802cde00ea90d06e3366;hpb=5a6e1cc44d4691518a1a4711e6eabd667c367085;p=fanfix.git diff --git a/src/jexer/TRadioGroup.java b/src/jexer/TRadioGroup.java index 58c65e2..a82b074 100644 --- a/src/jexer/TRadioGroup.java +++ b/src/jexer/TRadioGroup.java @@ -190,6 +190,10 @@ public class TRadioGroup extends TWidget { TRadioButton button = new TRadioButton(this, buttonX, buttonY, label, getChildren().size() + 1); + if (getParent().getLayoutManager() != null) { + getParent().getLayoutManager().resetSize(this); + } + // Default to the first item on the list. activate(getChildren().get(0));