git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor cleanup
[fanfix.git]
/
src
/
jexer
/
TRadioGroup.java
diff --git
a/src/jexer/TRadioGroup.java
b/src/jexer/TRadioGroup.java
index 58c65e2b11eb679a4110802cde00ea90d06e3366..a82b074f8ce9a1c4fe6de462433b8d4124507b91 100644
(file)
--- 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);
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));
// Default to the first item on the list.
activate(getChildren().get(0));