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
limit images in scrollback
[fanfix.git]
/
src
/
jexer
/
TComboBox.java
diff --git
a/src/jexer/TComboBox.java
b/src/jexer/TComboBox.java
index fe1366d3aad49693802efa0a3af0fee114abd3fc..b64dbde058ad006d4a5d80fd83e9ddd4303e8ba2 100644
(file)
--- 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) {
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) {
*/
@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);
}
super.setWidth(width);
}