Opened 10 years ago

Closed 10 years ago

#10779 closed defect (fixed)

AccordionContainer: exception on resize() of empty AccordionContainer

Reported by: Adam Peller Owned by: bill
Priority: high Milestone: 1.5
Component: Dijit Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

It's certainly an edge case... are empty AccordionContainers? supported?

The attached page loads, but resizing the widget throws an exception

dijit.byId("dijit_layout_AccordionContainer_0").resize()

openPane is undefined in layout()

Attachments (1)

accordion.html (1020 bytes) - added by Adam Peller 10 years ago.
Page with an empty AccordionContainer?

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Adam Peller

Attachment: accordion.html added

Page with an empty AccordionContainer?

comment:1 Changed 10 years ago by bill

Owner: set to Adam Peller
Summary: exception in empty AccordionContainerAccordionContainer: exception on resize() of empty AccordionContainer

Feel free to fix, I don't see a reason not to. Like you said, it's a corner case but some apps may be doing it that way.

comment:2 Changed 10 years ago by bill

Milestone: tbd1.5
Owner: changed from Adam Peller to bill
Status: newassigned

comment:3 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [22142]) Fix problems creating empty AccordionContainer and removing last child from AccordionContainer, fixes #10779, #11134 !strict.

Note: See TracTickets for help on using tickets.