source: Dev/trunk/src/client/dojox/layout/tests/test_ScrollPaneSingle.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 2.1 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4
5        <title>ScrollPane layout widget Test</title>
6
7        <!-- required: a default theme file -->
8        <link rel="stylesheet" id="themeStyles" href="../../../dijit/themes/tundra/tundra.css">
9        <link rel="stylesheet" href="../resources/ScrollPane.css">     
10
11
12        <!-- required: dojo.js -->
13        <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: false"></script>
14
15        <!-- do not use! only for testing dynamic themes -->
16        <script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>
17
18        <script language="JavaScript" type="text/javascript">
19                dojo.require("dojo.parser");
20                dojo.require("dojox.layout.ScrollPane");
21                dojo.addOnLoad(function(){
22                        var i;
23                        var n = dojo.byId("hold");
24                        var c = dojo.query(".clone")[0];
25                        for(i=0; i<12; i++){
26                                var b = dojo.clone(c);
27                                n.appendChild(b); // dojo.clone(dojo.byId("clone")));
28                        }
29                        dojo.parser.parse();
30//                      dijit.byId("horiz").layout();
31                });
32        </script>
33        <style type="text/css">
34                @import "../../../dojo/resources/dojo.css";
35                @import "../../../dijit/tests/css/dijitTests.css";
36
37                .dojoxScrollWindow {
38                        position:relative;
39                }
40                .dojoxScrollHelper .helperInner {
41                        visibility:hidden;
42                }
43                .dojoxScrollHelper {
44                        border:1px solid #b7b7b7;
45                        width:4px;
46                        background:#ededed;
47                        height:3px;
48                        position:absolute;
49                        bottom:2px;
50                        left:4px;
51                }
52                #altStyle .dojoxScrollHelper {
53                        -moz-border-radius:3pt;
54                        background:#b7cdee;
55                        border:2px solid #333;
56                        width:3px;
57                }
58               
59                .container { width:602px; margin:0 auto; }
60                .example { padding:20px; margin:5px; border:1px dotted #b7b7b7; }
61        </style>
62
63</head>
64<body class="tundra">
65
66<div class="container">
67        <h1 class='testTitle'>dojox.layout.ScrollPane</h1>
68        <h2>horizontal</h2>
69        <div dojoType="dojox.layout.ScrollPane" orientation="horizontal"  style="width:600px; height:125px" id="horiz">
70                <div class="dijitInline" id="hold">
71                        <div class="dijitInline clone example">
72                                <h2>Foo!</h2><div>text <ul><li>bar</li><li>bar</li></ul></div>
73                        </div>
74                </div>
75        </div>
76</div>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.