Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1811 closed defect (duplicate)

ComboBox - 0x0px down arrow when ComboBox starts hidden in FF 1.5

Reported by: [email protected] Owned by: Douglas Hays
Priority: high Milestone:
Component: Widgets Version: 0.4
Keywords: ComboBox Cc: [email protected]
Blocked By: Blocking:


Create a combo box inside a div that is hidden at page load time. Set div.display to inline at run time. The down arrow size is set to 0x0px in Firefox 1.5. It's OK in IE 6.0. The generated code, as returned by the WebDeveloper? extension is

<img style="width: 0px; height: 0px;" class="dojoComboBox" dojoattachpoint="downArrowNode" dojoattachevent="onMouseUp: handleArrowClick; onResize;" src="../../src/widget/templates/images/combo_box_arrow.png" hspace="0" vspace="0">

See for a demo based on the test_ComboBox.html page. Tested with Firefox Win and IE 6.0.2900 (XP SP2).

Actually, if you carefully watch the right side of the input box you can see a 1x2px down arrow and you can click on hit to display the drop down menu.

Workaround: start the div as inline and set it to hidden with a dojo.addOnLoad function. This isn't totally satisfactory because the contents of the div are displayed when the page loads and the page layout moves accordingly. Furthermore it seems to hit some other layout bugs, I still don't know if they are FF or Dojo's bug so I can't report on them. Just be careful when using this workaround.

Change History (6)

comment:1 Changed 16 years ago by bill

Milestone: 0.5
Owner: changed from bill to Douglas Hays

Right, actually a lot of widgets probably have trouble if they are created hidden, because the size calculations don't work. Let's think about the best way to handle this for 0.5, or maybe 0.6.

comment:2 Changed 16 years ago by Douglas Hays

The ComboBox? problem has been fixed in 0.4.1. Leaving this defect open to fix other widgets.

comment:3 Changed 16 years ago by Douglas Hays

Cc: [email protected] added
Status: newassigned

Please verify with the patch file in #1851, or use the latest 0.4.1 trunk.

comment:4 Changed 16 years ago by Douglas Hays

Resolution: duplicate
Status: assignedclosed

Fixed in #1851

comment:5 Changed 16 years ago by bill


comment:6 Changed 15 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.