git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
#52 include sixel in DA response
[nikiroo-utils.git]
/
src
/
jexer
/
TComboBox.java
diff --git
a/src/jexer/TComboBox.java
b/src/jexer/TComboBox.java
index fe1366d3aad49693802efa0a3af0fee114abd3fc..2d1b2c07539f1755c88429b4764391a1ee3bde21 100644
(file)
--- 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);
}