Opened 10 years ago

Closed 10 years ago

#9589 closed defect (fixed)

Add forceWidth config param to dojox.form._HasDropDown

Reported by: msorensen Owned by: Nathan Toone
Priority: high Milestone: 1.4
Component: DojoX Form Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description

Setup: _HasDropDown.dropDown is a widget that grows to fit the available space (ex. unconstrained BorderContainer?).

Symptom: The first time the openDropDown is called, the dropDown is correctly resized to _HasDropDown.domNode.offsetWidth. However, the second time openDropDown is called, the dropDown is resized to be as wide as the page.

Cause: During the second openDropDown, _HasDropDown trys to recalculate the natural width of the dropDown by removing the sizing constraints and calling marginBox. Once the sizing constraints are removed, the domNode of the BorderContainer? grows to the page width.

Proposed Solution: Add a config parameter named "forceWidth" to _HasDropDown that would resize the dropDown to match the width of _hasDropDown.domNode.

Attachments (1)

Add_forceWidth_parameter.patch (1.1 KB) - added by msorensen 10 years ago.
Proposed patch

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by msorensen

Proposed patch

comment:1 Changed 10 years ago by Nathan Toone

Owner: changed from dante to Nathan Toone

comment:2 Changed 10 years ago by Nathan Toone

Component: DojoX WidgetsDojoX Form
Milestone: tbd1.4

comment:3 Changed 10 years ago by Nathan Toone

Resolution: fixed
Status: newclosed

(In [19072]) Fixes #9589 - add in a forceWidth option for subclasses of _HasDropDown

Note: See TracTickets for help on using tickets.