| 1 |
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" > |
| 2 |
<head> |
| 3 |
<title>Test rect with mixed width/height percentage/px values</title> |
| 4 |
<style type="text/css"> |
| 5 |
@import "../../../dojo/resources/dojo.css"; |
| 6 |
@import "../../../dijit/tests/css/dijitTests.css"; |
| 7 |
</style> |
| 8 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 9 |
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<script type="text/javascript"> |
| 14 |
dojo.require("dojox.gfx"); |
| 15 |
dojo.require("dojox.gfx.move"); |
| 16 |
dojo.require("dojo.colors"); |
| 17 |
|
| 18 |
createSurface = function(){ |
| 19 |
var surface = dojox.gfx.createSurface("test", 800, 600); |
| 20 |
surface.whenLoaded(makeShapes); |
| 21 |
}; |
| 22 |
|
| 23 |
makeShapes = function(surface){ |
| 24 |
surface.createRect({x: 10, y: 10, width: "100%", height: 100}).setFill("red").setStroke("black"); |
| 25 |
surface.createRect({x: 10, y: 130, width: 100, height: "100%"}).setFill("red").setStroke("black"); |
| 26 |
}; |
| 27 |
|
| 28 |
dojo.addOnLoad(createSurface); |
| 29 |
|
| 30 |
</script> |
| 31 |
</head> |
| 32 |
<body> |
| 33 |
<h1>[12558] Test rect with mixed width/height percentage/px values</h1> |
| 34 |
<div id="test"></div> |
| 35 |
<p>That's all Folks!</p> |
| 36 |
</body> |
| 37 |
</html> |