Hello,

I am using qooxdoo 0.7 and found a problem related to ComboBoxEx. It may
display the drop-down list incorrectly. Namely it does not show some items
in the list. In my example ComboBoxEx does not display the first three
items. It displays those items only when list is scrolled down and up. Is it
a bug?

And another problem. ComboBoxEx trims leading spaces for items when it
displays the drop-down list but shows spaces for selected item in text field
("Text files" item in my example). Is it normal? Is it possible to save
leading spaces for items displaying in list? Is there any properties that
control spaces trimming?

Problems were noticed in Internet Explorer 6, Firefox 2 and Opera 9 on
Windows XP Prof SP2.

The code snippet:
var cSpace = "- ";
var cSpace222 = "--- ";
var cboResultType = new qx.ui.form.ComboBoxEx();
var aResultType = [
    ["all", this.tr("All")],
    ["email", this.tr("E-mail messages")],
    ["files", this.tr("Files")],
    ["txt", "    " + this.tr("Text files")],
    ["doc", cSpace + this.tr("Word documents")],
    ["xls", cSpace + this.tr("Excel spreadsheets")],
    ["ppt", cSpace + this.tr("PowerPoint presentations")],
    ["pdf", cSpace + this.tr("PDF files")],
    ["music", cSpace + this.tr("Music files")],
    ["mp3", cSpace222 + this.tr("MP3 files")],
    ["wma", cSpace222 + this.tr("WMA files")],
    ["images", cSpace + this.tr("Images")],
    ["jpg", cSpace222 + this.tr("JPEG files")],
    ["gif", cSpace222 + this.tr("GIF files")],
    ["png", cSpace222 + this.tr("PNG files")],
    ["video", cSpace + this.tr("Video files")],
    ["wmv", cSpace222 + this.tr("WMV files")],
    ["mpeg", cSpace222 + this.tr("MPEG files")],
    ["avi", cSpace222 + this.tr("AVI files")],
    ["web", this.tr("Web search history")],
    ["chats", this.tr("Chats")],
    ["other", this.tr("Other")],
    ["contacts", cSpace + this.tr("Contacts")],
    ["calendar", cSpace + this.tr("Calendar")],
    ["tasks", cSpace + this.tr("Tasks")],
    ["notes", cSpace + this.tr("Notes")],
    ["journal", cSpace + this.tr("Journal")]
];
cboResultType.setSelection(aResultType);
cboResultType.set({
    left : 10,
    top : 10
});
cboResultType.sizeTextFieldToContent();
cboResultType.setValue("files");
cboResultType.addToDocument();

Any help will be appreciated.

Best regards,
Dioc

-- 
View this message in context: 
http://www.nabble.com/A-strange-behaviour-of-ComboBoxEx-when-it-displays-the-drop-down-list-tf4060362.html#a11535626
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to