X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTComboBox.java;h=2d1b2c07539f1755c88429b4764391a1ee3bde21;hb=fc2af49443133106c95da9aaf8b7126be8c7dedd;hp=fe1366d3aad49693802efa0a3af0fee114abd3fc;hpb=8f62f06e3ab03e24e23a1b7f369ae31d701e736b;p=fanfix.git diff --git a/src/jexer/TComboBox.java b/src/jexer/TComboBox.java index fe1366d..2d1b2c0 100644 --- a/src/jexer/TComboBox.java +++ b/src/jexer/TComboBox.java @@ -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); }