Opened 9 years ago

Last modified 3 years ago

#10922 open enhancement

Select: support automatically computed fixed width

Reported by: bill Owned by:
Priority: high Milestone: 1.15
Component: Dijit - LnF Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

The width of the Select widget changes depending on which option is selected. It would be better if it remained a constant width, the width of the widest option.

Problem can probably be lessened (worked around) by setting a min-width on (one of the) Select's DOMNodes, but that won't work on IE6 and it will be hard to find a "just wide enough" width setting, since the drop down options may change over time, and also because they will change width depending on browser zoom setting.

The optimal solution is probably to work like Calendar does, where all the options are rendered inside a 1px tall hidden div, just to get the width of the widest element (all without JS size calculations).

Change History (8)

comment:1 Changed 9 years ago by Douglas Hays

Owner: set to Douglas Hays

comment:2 Changed 6 years ago by bill

#17055 is a duplicate of this ticket.

comment:3 Changed 6 years ago by bill

Summary: Select: support fixed widthSelect: support automatically computed fixed width
Type: defectenhancement

comment:4 Changed 6 years ago by dbsalgad

Hello,

Is there any idea of when this enhancement will be made? I see it is high priority...

Thanks! David

comment:5 Changed 6 years ago by Douglas Hays

Owner: Douglas Hays deleted
Status: newassigned

comment:6 Changed 6 years ago by Douglas Hays

Status: assignedopen

comment:7 Changed 4 years ago by dylan

Milestone: future1.12

comment:8 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.