Opened 5 years ago

Last modified 2 years ago

#18145 assigned enhancement

_HasDropDown: provide a maxWidth property

Reported by: gorgoroth Owned by: bill
Priority: undecided Milestone: 1.15
Component: Dijit Version: 1.10.0
Keywords: Cc:
Blocked By: Blocking:


The forceWidth and autoWidth properties do not cover all usability cases. In some of this cases it has been necessary to limit, with autoWidth property enabled, the drop-down horizontal extent inside a viewport and avoid going beyond the right edge.

Change History (8)

comment:1 Changed 5 years ago by bill

Component: GeneralDijit
Owner: set to gorgoroth
Status: newpending

Why is that? Is the anchor node itself going outside the viewport?

comment:2 Changed 5 years ago by gorgoroth

Status: pendingnew

It's the dropdown that is too large in width (if autoWidth is active) and goes outside the right edge of the browser viewport. Normally the drop down width is as large as the largest entry in the list. Having a maxWidth property could limit the width of the dropdown.

comment:3 Changed 5 years ago by bill

Status: newpending

OK, and why can't you use forceWidth in that case?

comment:4 Changed 5 years ago by gorgoroth

Status: pendingnew

Because forceWidth property forces the dropdown width to the width of the widget. What I want, instead, is the behaviour of autoWidth but limited to the width specified in the maxWidth property value, if the autoWidth makes the dropdown width grows over maxWidth value.

comment:5 Changed 4 years ago by bill

It sounds like maxWidth, like maxHeight, should have a -1 value to limit the width to the space available in the viewport.

comment:6 Changed 4 years ago by bill

Milestone: tbd1.11
Owner: changed from gorgoroth to bill
Status: newassigned

comment:7 Changed 4 years ago by dylan

Milestone: 1.111.12

comment:8 Changed 2 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.