:: Forum >> Version 2 >>

Combo text edit box too small in Opera 9.24

More information on this topic is available in the documentation section: /ui.combo/.

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
Tuesday, December 11, 2007
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)
Thursday, December 13, 2007



This topic is archived.

Back to /ui.combo/

Documentation:

Forum search