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
resizing fixes
[fanfix.git]
/
src
/
jexer
/
TComboBox.java
diff --git
a/src/jexer/TComboBox.java
b/src/jexer/TComboBox.java
index 4abdd6fbc7445b89378dffd3ec7e40923d88bec6..fe1366d3aad49693802efa0a3af0fee114abd3fc 100644
(file)
--- a/
src/jexer/TComboBox.java
+++ b/
src/jexer/TComboBox.java
@@
-216,13
+216,15
@@
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) {
*/
@Override
public void setWidth(final int width) {
- // Do nothing
+ field.setWidth(width - 3);
+ list.setWidth(width);
+ super.setWidth(width);
}
/**
}
/**