Opened 13 years ago
Closed 13 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)
Change History (4)
Changed 13 years ago by
Attachment: | Add_forceWidth_parameter.patch added |
---|
comment:1 Changed 13 years ago by
Owner: | changed from dante to Nathan Toone |
---|
comment:2 Changed 13 years ago by
Component: | DojoX Widgets → DojoX Form |
---|---|
Milestone: | tbd → 1.4 |
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Proposed patch