X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTField.java;h=7c8b5bc415e62882a24941734da6ac213c706b75;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=6aaf5912497659bfa3b3b07fc0ff1e64743ba0ad;hpb=ebb9a1e491ed62be0a1f0d9e5b45fe856d849e07;p=fanfix.git diff --git a/src/jexer/TField.java b/src/jexer/TField.java index 6aaf591..7c8b5bc 100644 --- a/src/jexer/TField.java +++ b/src/jexer/TField.java @@ -378,6 +378,17 @@ public class TField extends TWidget { // TWidget ---------------------------------------------------------------- // ------------------------------------------------------------------------ + /** + * Override TWidget's height: we can only set height at construction + * time. + * + * @param height new widget height (ignored) + */ + @Override + public void setHeight(final int height) { + // Do nothing + } + /** * Draw the text field. */ @@ -468,11 +479,11 @@ public class TField extends TWidget { protected void dispatch(final boolean enter) { if (enter) { if (enterAction != null) { - enterAction.DO(); + enterAction.DO(this); } } else { if (updateAction != null) { - updateAction.DO(); + updateAction.DO(this); } } }