You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.4 KiB
62 lines
1.4 KiB
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
|
<title>FixedSplitter Test</title> |
|
|
|
<link href="../themes/iphone/FixedSplitter.css" rel="stylesheet"/> |
|
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
|
|
|
<script type="text/javascript"> |
|
require([ |
|
"dojo/_base/connect", |
|
"dojo/ready", |
|
"dijit/registry", |
|
"dojox/mobile/parser", |
|
"dojox/mobile/FixedSplitter", |
|
"dojox/mobile/Pane" |
|
], function(connect, ready, registry){ |
|
ready(function(){ |
|
connect.connect(null, "onresize", function(){ |
|
registry.byId("splitter1").resize(); |
|
}); |
|
}); |
|
}); |
|
</script> |
|
|
|
<style type="text/css"> |
|
html, body{ |
|
width: 100%; |
|
height: 100%; |
|
padding: 0px; |
|
margin: 0px; |
|
overflow: hidden; |
|
} |
|
#pane0 { |
|
background-color: cyan; |
|
} |
|
#pane1 { |
|
background-color: yellow; |
|
border-bottom: 1px solid black; |
|
height: 100px; |
|
} |
|
#pane2 { |
|
background-color: pink; |
|
height: 100px; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<div id="splitter1" data-dojo-type="dojox.mobile.FixedSplitter" data-dojo-props='orientation:"V", variablePane:0'> |
|
<div id="pane0" data-dojo-type="dojox.mobile.Pane"> |
|
pane #0 (height=variable) |
|
</div> |
|
<div id="pane1" data-dojo-type="dojox.mobile.Pane"> |
|
pane #1 (height=100px) |
|
</div> |
|
<div id="pane2" data-dojo-type="dojox.mobile.Pane"> |
|
pane #2 (height=100px) |
|
</div> |
|
</div> |
|
</body> |
|
</html>
|
|
|