Noticed a bug in the latest version of ui.Combo that wasn't there before.
If I set a custom width/height with setPreferredSize, the arrow button's height gets stretched out along with the text box (assuming you are setting a higher height than the default).
Have to use this workaround to enforce the original height (24px) of the arrow button -
var combo = new Combo(list);
combo.setPreferredSize(width, height);
// fix arrow button height
combo.kids[1].extend([
function setSize(w, h)
{
this.$super(w, 24);
},
function setLocation(x, y)
{
this.$super(x, ((height-24)/2)+1);
}
]);
Noticed a bug in the latest version of ui.Combo that wasn't there before. If I set a custom width/height with setPreferredSize, the arrow button's height gets stretched out along with the text box (assuming you are setting a higher height than the default).
Have to use this workaround to enforce the original height (24px) of the arrow button -