From 71364a8497aa84395efda39b3c4a0b918b31be02 Mon Sep 17 00:00:00 2001 From: Julian Viereck Date: Sun, 15 May 2011 13:44:36 +0200 Subject: [PATCH] Move options from the top to the left side in the demo. --- demo/demo.js | 4 +- demo/styles.css | 11 ++++-- index.html | 98 +++++++++++++++++++++++++++++++------------------ 3 files changed, 71 insertions(+), 42 deletions(-) diff --git a/demo/demo.js b/demo/demo.js index afe6ed9c..cd70a622 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -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(); }; diff --git a/demo/styles.css b/demo/styles.css index 3f244f7c..6b774db3 100644 --- a/demo/styles.css +++ b/demo/styles.css @@ -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; diff --git a/index.html b/index.html index 95170f54..01b9ae1e 100644 --- a/index.html +++ b/index.html @@ -10,29 +10,36 @@ - - + + + + - + + - + + - + + - + + - + + - + + - - - - + + - + + - + + - + + - + + - + + - + +
+
+ +
+
+
+
+
+
+
- -
+
+
+
+
+
+
+