Combobox doesn't apply visibleRows for the second (and the rest) popup.
First time - popup has width of row with max length, and has visibleRows at height.
Problem 1 - length of row is too large, popup will be much wider than screen! I expect to have width same as combobox width.
Second time (and the rest tries) - popup has the same width as combobox, and no limit to height - height allow to show all rows of combobox.
Problem 2 - visibleRows not applied. I expect to show popup with height of visibleRows.
I found the problem in method EPComboBox.prototype.adjustSize - this.eBox object has width/height for the first popup, and doesn't have width/height for others.
But I don't know the reason of that and don't understand what to do with that.
Source code is
import echopointng.ComboBox;
import java.util.ArrayList;
import java.util.List;
import nextapp.echo2.app.Column;
import nextapp.echo2.app.list.DefaultListModel;
import org.apache.commons.lang.RandomStringUtils;
public class TextComboBox extends Column {
public void init() {
super.init();
ComboBox comboBox = new ComboBox();
int capacity = 50;
List<String> strings = new ArrayList<String>(capacity);
for (int i = 0; i < capacity; i++) {
strings.add(RandomStringUtils.randomAscii(i * 10));
}
comboBox.setListModel(new DefaultListModel(strings.toArray()));
comboBox.setListRowCount(10);
comboBox.setAutoRecall(false);
add(comboBox);
}
}