Opened 14 years ago

Closed 13 years ago

#2048 closed defect (fixed)

ComboBox in a Dialog "downArrowNode" doesn't get sized properly in Firefox 2 (works in IE7)

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

Description (last modified by bill)

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);
			var buttonSize = { width: inputSize.height, height: inputSize.height};
			dojo.html.setContentBox(this.downArrowNode, buttonSize);

inputSize.height is returning -2 for me.

Change History (5)

comment:1 Changed 14 years ago by bill

Description: modified (diff)

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).

comment:2 Changed 13 years ago by Douglas Hays

Owner: changed from bill to Douglas Hays

comment:3 Changed 13 years ago by dylan

Milestone: 0.9

comment:4 Changed 13 years ago by Douglas Hays

Status: newassigned

comment:5 Changed 13 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(In [7219]) Fixes #2048

Note: See TracTickets for help on using tickets.