:: Forum >>

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.setControlText("(New Report)");
reports_combo.setControlSize(200, 23);
reports_combo.setStyle("z-index", "1");
reports_combo.getPopupTemplate().setStyle("width", "200px");

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.

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 support forum

Forum search