Add 'src/jexer/' from commit 'cf01c92f5809a0732409e280fb0f32f27393618d'
[fanfix.git] / src / jexer / TRadioGroup.java
index 58c65e2b11eb679a4110802cde00ea90d06e3366..a82b074f8ce9a1c4fe6de462433b8d4124507b91 100644 (file)
@@ -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));