dojo layout tutorial dor version 1.7 doesn't work for 1.7.2

Posted by Sheena on Stack Overflow See other posts from Stack Overflow or by Sheena
Published on 2012-06-29T07:55:41Z Indexed on 2012/06/29 9:16 UTC
Read the original article Hit count: 278

Filed under:
|

This is sortof a continuation to dojo1.7 layout acting screwy.

So I made some working widgets and tested them out, i then tried altering my work using the tutorial at http://dojotoolkit.org/documentation/tutorials/1.7/dijit_layout/ to make the layout nice. After failing at that in many interesting ways (thus my last question) I started on a new path. My plan is now to implement the layout tutorial example and then stick in my widgets. For some reason even following the tutorial wont work... everything loads then disappears and I'm left with a blank browser window.

Any ideas?

It just struck me that it could be browser compatibility issues, I'm working on Firefox 13.0.1. As far as I know Dojo is supposed to be compatible with this...

anyway, have some code:

HTML:

<body class="claro">
<div
        id="appLayout" class="demoLayout"
        data-dojo-type="dijit.layout.BorderContainer"
        data-dojo-props="design: 'headline'">
    <div
            class="centerPanel"
            data-dojo-type="dijit.layout.ContentPane"
            data-dojo-props="region: 'center'">
        <div>
            <h4>Group 1 Content</h4>
            <p>stuff</p>
        </div>
        <div>
            <h4>Group 2 Content</h4>
        </div>
        <div>
            <h4>Group 3 Content</h4>
        </div>
    </div>
    <div
            class="edgePanel"
            data-dojo-type="dijit.layout.ContentPane"
            data-dojo-props="region: 'top'">
                Header content (top)
    </div>
    <div
        id="leftCol" class="edgePanel"
        data-dojo-type="dijit.layout.ContentPane"
        data-dojo-props="region: 'left', splitter: true">
            Sidebar content (left)
    </div>
</div>
</body> 

Dojo Configuration:

var dojoConfig = {
        baseUrl: "${request.static_url('mega:static/js')}", //this is in a mako template
        tlmSiblingOfDojo: false,
        packages: [
            { name: "dojo", location: "libs/dojo" },
            { name: "dijit", location: "libs/dijit" },
            { name: "dojox", location: "libs/dojox" },
        ],
        parseOnLoad: true,
        has: {
                "dojo-firebug": true,
                "dojo-debug-messages": true
            },   
       async: true 
    };

other js stuff:

require(["dijit/layout/BorderContainer", "dijit/layout/TabContainer",
    "dijit/layout/ContentPane", "dojo/parser"]);

css:

html, body {
height: 100%;
margin: 0;
overflow: hidden;
padding: 0;
}

#appLayout {
height: 100%;
}
#leftCol {
width: 14em;
}

© Stack Overflow or respective owner

Related posts about layout

Related posts about dojo