Opened 9 years ago

Closed 9 years ago

#11978 closed defect (worksforme)

dijit.layout.layoutChildren does not consider some child does not have style

Reported by: riceyeh Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description

The code on line 240 in the method dijit.layout.layoutChildren of dijit.layout._LayoutWidget.js does not have check against some child having no style. The code should be changed from

var elmStyle = elm.style;

to

var elmStyle = elm.style ? elm.style : {};

Change History (2)

comment:1 Changed 9 years ago by bill

Component: GeneralDijit
Owner: anonymous deleted

AFAIK elm.style is always defined, even if there is no explicit style setting. Can you provide a test case that's failing, and list which browser it's failing on?

comment:2 Changed 9 years ago by bill

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.