X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTComboBox.java;h=b64dbde058ad006d4a5d80fd83e9ddd4303e8ba2;hb=edbcdccc16e7ba5fd4ca92042a12165db28dd9d6;hp=fe1366d3aad49693802efa0a3af0fee114abd3fc;hpb=8f62f06e3ab03e24e23a1b7f369ae31d701e736b;p=fanfix.git diff --git a/src/jexer/TComboBox.java b/src/jexer/TComboBox.java index fe1366d..b64dbde 100644 --- a/src/jexer/TComboBox.java +++ b/src/jexer/TComboBox.java @@ -119,7 +119,7 @@ public class TComboBox extends TWidget { TComboBox.this.activate(field); } if (updateAction != null) { - updateAction.DO(); + updateAction.DO(TComboBox.this); } } } @@ -222,8 +222,12 @@ public class TComboBox extends TWidget { */ @Override public void setWidth(final int width) { - field.setWidth(width - 3); - list.setWidth(width); + if (field != null) { + field.setWidth(width - 3); + } + if (list != null) { + list.setWidth(width); + } super.setWidth(width); }