ComboBox in a Dialog "downArrowNode" doesn't get sized properly in Firefox 2 (works in IE7)
Only done this programmatically, seems the ComboBox?>>onResize(), gets bad inputSize for buttonSize in fire fox 2.0
onResize: function(){
var inputSize = dojo.html.getContentBox(this.textInputNode);
if( inputSize.height == 0 ){
// need more time to calculate size
dojo.lang.setTimeout(this, "onResize", 50);
return;
}
var buttonSize = { width: inputSize.height, height: inputSize.height};
dojo.html.setContentBox(this.downArrowNode, buttonSize);
},
inputSize.height is returning -2 for me.
Change History (5)
Description: |
modified (diff)
|
Owner: |
changed from bill to Douglas Hays
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Ah yes, this is a common pattern because you can't get the size of a hidden element, or an element that isn't attached to the document tree (ie, has no parent).