Opened 10 years ago
Closed 10 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 10 years ago by
Component: | General → Dijit |
---|---|
Owner: | anonymous deleted |
comment:2 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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?