summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-06-18 15:54:57 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-06-18 15:54:57 +0000
commit117a469589c0ca8b902d18c53412cbd170eb882b (patch)
tree9709fc5ab9190c96110375722a48694adcbae30e /WebContent
parentb2fd2f8db8a11e48324d819091857a28dda208ba (diff)
downloadvaadin-framework-117a469589c0ca8b902d18c53412cbd170eb882b.tar.gz
vaadin-framework-117a469589c0ca8b902d18c53412cbd170eb882b.zip
Now customlayout loading __seems__ to work with ff, ie6, ie7, safari...
svn changeset:1763/svn branch:trunk
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/theme/demo/layout/featurebrowser-mainlayout.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/WebContent/theme/demo/layout/featurebrowser-mainlayout.html b/WebContent/theme/demo/layout/featurebrowser-mainlayout.html
index d39d9cd3e6..ac0623983c 100644
--- a/WebContent/theme/demo/layout/featurebrowser-mainlayout.html
+++ b/WebContent/theme/demo/layout/featurebrowser-mainlayout.html
@@ -4,7 +4,7 @@
</head>
<body>
-<div id="featurebrowser-mainlayout" style="position: absolute; top: 0pt; left: 0pt;"><img src="img/header.png" />
+<div id="featurebrowser-mainlayout" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"><img src="img/header.png" />
<div id="featurebrowser-features" style="top: 62px; width: 200px;">
<div location="tree">puu</div>
@@ -65,7 +65,7 @@
</div>
<div id="featurebrowser-divider"
- style="overflow: hidden; position: absolute; width: 137px; height: 17px;" /></div>
+ style="overflow: hidden; position: absolute; width: 137px; height: 17px;" />
</div>
<script type="text/javascript">
@@ -92,13 +92,13 @@ recalcFeatureBrowserLayout = function() {
// Get whole window contents size
document.body.style.padding = 0;
document.body.style.margin = 0;
- mainDiv.style.width="100%";
- mainDiv.style.height="100%";
-
- var width = mainDiv.offsetWidth;
- var height = mainDiv.offsetHeight;
- if (document.body.offsetWidth > mainDiv.offsetWidth) width = document.body.offsetWidth;
- if (document.body.offsetHeight > mainDiv.offsetHeight) height = document.body.offsetHeight;
+ document.body.style.position = "absolute";
+ document.body.style.height = "100%";
+ document.body.style.width = "100%";
+ var width = document.body.offsetWidth;
+ var height = document.body.offsetHeight;
+ mainDiv.style.height = height + "px";
+ mainDiv.style.width = width + "px";
// Recalc features div dimensions
var featuresWidth = 200;