3.2.0

Combo text edit box too small in Opera 9.24

I've created and resized a combo box using the following code:

var reports_combo = new AW.UI.Combo;
var reports_combo_items = new Array();
db_sql_query("SELECT name FROM tblreports ORDER BY name", "", "reports_combo_items", "0");
reports_combo.setId("reports_combo");
reports_combo.setControlText("(New Report)");
reports_combo.setItemText(reports_combo_items);
reports_combo.setItemCount(reports_combo_items.length);
reports_combo.setControlSize(200, 23);
reports_combo.setStyle("z-index", "1");
reports_combo.getPopupTemplate().setStyle("width", "200px");
reports_combo.refresh();

However, in Opera browser, the width of the text entry control inside the combo box does not resize from it's default, so it's too short.



Dan
December 11,
Yes, this problem is triggered by an Opera bug (does not support setting width with left:..px, right:..px CSS rules for input elements). Unfortunately I don't know any workaround for this. The only thing I can suggest is to set the width for input box with the script:

reports_combo.getContent("box/text").setStyle("width", "175px");
Alex (ActiveWidgets)
December 13,

This topic is archived.

See also:


Back to support forum