Move options from the top to the left side in the demo.

This commit is contained in:
Julian Viereck 2011-05-15 13:44:36 +02:00
commit 71364a8497
3 changed files with 71 additions and 42 deletions

View file

@ -336,8 +336,8 @@ exports.launch = function(env) {
}
function onResize() {
container.style.width = (document.documentElement.clientWidth) + "px";
container.style.height = (document.documentElement.clientHeight - 60 - 22) + "px";
container.style.width = (document.documentElement.clientWidth - 180) + "px";
container.style.height = (document.documentElement.clientHeight - 22) + "px";
env.editor.resize();
};

View file

@ -17,18 +17,21 @@ body {
#editor {
position: absolute;
top: 60px;
left: 0px;
top: 0px;
left: 180px;
bottom: 0px;
right: 0px;
background: white;
}
#controls {
width: 100%;
padding: 5px;
}
#cockpitInput {
position: absolute;
width: 100%;
left: 180px;
right: 0px;
bottom: 0;
border: none; outline: none;