Ticket #1957 (closed defect: fixed)
LayoutContainer + TabContainer = strange problem
| Reported by: | joose | Owned by: | bill |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 0.4 |
| Severity: | normal | Keywords: | LayoutContainer, TabContainer |
| Cc: |
Description
Problem: When I have complex layout, when destroying Tab, it causes error in src/widget/html/layout.js
Cause: unknown
Solution:
--- src/widget/html/layout.js (revision 6640)
+++ src/widget/html/layout.js (working copy)
@@ -16,7 +16,6 @@
* children:
* an array like [ {domNode: foo, layoutAlign: "bottom" }, {domNode: bar, layoutAlign: "client"} ]
*/
-
dojo.html.addClass(container, "dojoLayoutContainer");
// Copy children array and remove elements w/out layout.
@@ -60,6 +59,7 @@
var elm=child.domNode;
var pos=child.layoutAlign;
// set elem to upper left corner of unused space; may move it later
+ if (elm == null) {return; }
with(elm.style){
left = f.left+"px";
top = f.top+"px";
Attachments
Change History
Note: See
TracTickets for help on using
tickets.