X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTComboBox.java;h=b64dbde058ad006d4a5d80fd83e9ddd4303e8ba2;hb=20c416a0cb63ad5d2e3f14eae42d2d7b2f13e946;hp=4abdd6fbc7445b89378dffd3ec7e40923d88bec6;hpb=d8dc8aea32a07a0653933700f1abadc7776b013f;p=fanfix.git diff --git a/src/jexer/TComboBox.java b/src/jexer/TComboBox.java index 4abdd6f..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); } } } @@ -216,13 +216,19 @@ public class TComboBox extends TWidget { // ------------------------------------------------------------------------ /** - * Override TWidget's width: we can only set width at construction time. + * Override TWidget's width: we need to set child widget widths. * - * @param width new widget width (ignored) + * @param width new widget width */ @Override public void setWidth(final int width) { - // Do nothing + if (field != null) { + field.setWidth(width - 3); + } + if (list != null) { + list.setWidth(width); + } + super.setWidth(width); } /**