#1811 closed defect (duplicate)
ComboBox - 0x0px down arrow when ComboBox starts hidden in FF 1.5
Reported by: | Owned by: | Douglas Hays | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4 |
Keywords: | ComboBox | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
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 http://pmontrasio.vpsland.com/bug_ComboBox.html for a demo based on the test_ComboBox.html page. Tested with Firefox Win 1.5.0.7 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
Milestone: | → 0.5 |
---|---|
Owner: | changed from bill to Douglas Hays |
comment:2 Changed 16 years ago by
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
Cc: | [email protected]… added |
---|---|
Status: | new → assigned |
Please verify with the patch file in #1851, or use the latest 0.4.1 trunk.
comment:5 Changed 16 years ago by
Milestone: | 0.5 → 0.4.1 |
---|
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.