#18454 closed defect (fixed)
FilteringSelect Dropdown width
Reported by: | Serge | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9.8 |
Component: | Dijit - Form | Version: | 1.10.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Problem relates to using a FilteringSelect? with a Memory store.
If the store's display value fits within the FilteringSelects? width, the dropdown size is the widgets width, as it should be (autoWidth = true).
If you then set the widgets store to a new store, with display values that are wider than the FilteringSelects? width, then the dropdown does not correctly resize. It retains the previous width.
This only works if the dropdown width is equal to the widgets width. If the dropdown width does not equal the widgets width, then autoWidth works correctly.
Example: http://dojo-sandbox.net/public/7e572/1
This is consistent with 1.10.3
Attachments (1)
Change History (9)
Changed 6 years ago by
Attachment: | comboWidth.html added |
---|
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Right, I assume we need to restore the dropdown's original width setting when it's closed. popup.js has similar code for restoring the height.
comment:3 Changed 6 years ago by
this also happens when searching. if a resultset gets displayed which is smaller than the input-field, the width is set and never removed.
any plans to fix this for the next 1.10 release?
comment:4 Changed 5 years ago by
Milestone: | tbd → 1.9.8 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
comment:6 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Same issue occurs when using more choices pagination. As soon as a page is smaller, or equal to the widget width it stops auto resizing the pages. The auto resize works fine up until the moment we have a page with a smaller or equal width with the widget.
The problem comes from this code which sets a hardcoded style width on the dropdown node and it forces to a fixed width.