| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
| 5 | <title>FixedSplitter Test</title> |
| 6 | |
| 7 | <link href="../themes/iphone/FixedSplitter.css" rel="stylesheet"/> |
| 8 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
| 9 | |
| 10 | <script type="text/javascript"> |
| 11 | require([ |
| 12 | "dojo/_base/connect", |
| 13 | "dojo/ready", |
| 14 | "dijit/registry", |
| 15 | "dojox/mobile/parser", |
| 16 | "dojox/mobile/FixedSplitter", |
| 17 | "dojox/mobile/Pane" |
| 18 | ], function(connect, ready, registry){ |
| 19 | ready(function(){ |
| 20 | connect.connect(null, "onresize", function(){ |
| 21 | registry.byId("splitter1").resize(); |
| 22 | }); |
| 23 | }); |
| 24 | }); |
| 25 | </script> |
| 26 | |
| 27 | <style type="text/css"> |
| 28 | html, body{ |
| 29 | width: 100%; |
| 30 | height: 100%; |
| 31 | padding: 0px; |
| 32 | margin: 0px; |
| 33 | overflow: hidden; |
| 34 | } |
| 35 | #pane0 { |
| 36 | background-color: cyan; |
| 37 | height: 100px; |
| 38 | } |
| 39 | #pane1 { |
| 40 | background-color: yellow; |
| 41 | border-bottom: 1px solid black; |
| 42 | height: 100px; |
| 43 | } |
| 44 | #pane2 { |
| 45 | background-color: pink; |
| 46 | } |
| 47 | </style> |
| 48 | </head> |
| 49 | <body> |
| 50 | <div id="splitter1" data-dojo-type="dojox.mobile.FixedSplitter" data-dojo-props='orientation:"V"'> |
| 51 | <div id="pane0" data-dojo-type="dojox.mobile.Pane"> |
| 52 | pane #0 (height=100px) |
| 53 | </div> |
| 54 | <div id="pane1" data-dojo-type="dojox.mobile.Pane"> |
| 55 | pane #1 (height=100px) |
| 56 | </div> |
| 57 | <div id="pane2" data-dojo-type="dojox.mobile.Pane"> |
| 58 | pane #2 (height=variable) |
| 59 | </div> |
| 60 | </div> |
| 61 | </body> |
| 62 | </html> |