Opened 11 years ago
Closed 11 years ago
#12795 closed defect (wontfix)
BorderContainer: child w/o region error msg clear
Reported by: | mtyson | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Dijit | Version: | 1.6.0 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
If you have a child of a BC without a region attr, in 1.4 it worked fine (it acted as region="center").
In 1.6 is fails with the error message:
TypeError?: word is undefined
Which comes from calling capitalize on a undefined value.
It'd be nice if this error message was clear and especially nice if it told you what the id of the complaining BC was.
Change History (4)
comment:1 Changed 11 years ago by
Component: | General → Dijit |
---|
comment:2 Changed 11 years ago by
Milestone: | tbd → 1.7 |
---|---|
Owner: | set to bill |
Summary: | Make bordercontainer child w/o region error msg clear → BorderContainer: child w/o region error msg clear |
comment:3 Changed 11 years ago by
Hmm, I tried 1.4, and it doesn't work fine. There's no exception, but the pane with no region does not show up in the center, or at all. If you have an example where it does work please attach it (using the attach file button).
comment:4 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Closing this since apparently it never returned an error message.
Hmm we don't usually "bloat" the code with error messages, since every byte counts on a web browser download. But I suppose I can restore the 1.4 behavior when region isn't specified, although not sure we ever said that the region parameter was optional.
BTW you can (and should) register your email w/trac (click preferences link) so you don't need to add it to the cc line.