Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3933 closed defect (fixed)

DropdownButton make dialog too narrow

Reported by: bill Owned by: Adam Peller
Priority: high Milestone: 0.9
Component: Dijit - Form Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

See test_Toolbar.html or test_Editor.html. As of change [9833] to Button.js, DropDownButton? makes the dialog too narrow. Problem is that you are calling:

if(this.domNode.offsetWidth > dropDown.domNode.offsetWidth){

while the drop down is hidden. Thus dropDown.domNode.offsetWidth is 0 (even though in actuality the dropdown is wider than the button).

Change History (5)

comment:1 Changed 14 years ago by bill

Description: modified (diff)

comment:2 Changed 14 years ago by bill

(In [9918]) Comment out broken code; refs #3933.

comment:3 Changed 14 years ago by bill

FYI, commenting out the code fixes the dialog problem but then Menus are too narrow. A menu needs to be at least as wide as the button. So revert [9833] or fix the problem.

comment:4 Changed 14 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [9981]) Redo BiDi? button patch. Refs #3049, Fixes #3933

comment:5 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.