X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTRadioGroup.java;h=a82b074f8ce9a1c4fe6de462433b8d4124507b91;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=58c65e2b11eb679a4110802cde00ea90d06e3366;hpb=d8dc8aea32a07a0653933700f1abadc7776b013f;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));