[Type] bug fix
[Module] DynamicAnalyzer
[Priority] major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
};
public void setText(String text) {
- // if (!setSelect(text)) {
- this.text = text;
- combo.redraw();
- // }
+ if (!setSelect(text)) {
+ this.text = text;
+ combo.redraw();
+ }
}
private boolean setSelect(String text) {
return false;
}
int size = items.size();
- if (index + MAX_SIZE > size) {
+ if (index + MAX_SIZE >= size) {
int lower = size - index;
selection = MAX_SIZE - lower;
itemIndex = size - MAX_SIZE;
select(selection);
+ } else {
+ selection = index - itemIndex;
+ select(selection);
}
return true;
}