From abaad78f5dd7bb8e4bb4d4a362c33f884d5dea45 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 21 Nov 2009 21:40:58 +0200 Subject: [PATCH] safari 4 background fix --- Modern Bubbling (Compact)/Contents/Resources/Template.html | 1 + Modern Bubbling (Compact)/Contents/Resources/main.css | 5 ++--- Modern Bubbling/Contents/Resources/Template.html | 1 + Modern Bubbling/Contents/Resources/main.css | 3 +-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modern Bubbling (Compact)/Contents/Resources/Template.html b/Modern Bubbling (Compact)/Contents/Resources/Template.html index 539bbe9..bced38f 100644 --- a/Modern Bubbling (Compact)/Contents/Resources/Template.html +++ b/Modern Bubbling (Compact)/Contents/Resources/Template.html @@ -296,6 +296,7 @@ if (windowHeight - contentHeight > 0) { contentElement.style.position = 'relative'; contentElement.style.top = (windowHeight - contentHeight) + 'px'; + document.body.style.height = windowHeight + "px"; /* Safari 4 background fix */ } else { contentElement.style.position = 'static'; } diff --git a/Modern Bubbling (Compact)/Contents/Resources/main.css b/Modern Bubbling (Compact)/Contents/Resources/main.css index efe8186..7df9fd0 100644 --- a/Modern Bubbling (Compact)/Contents/Resources/main.css +++ b/Modern Bubbling (Compact)/Contents/Resources/main.css @@ -26,14 +26,13 @@ body { /* font property used for development only */ /* font: 11px helvetica;*/ - background: #fff; + background: #fff url(images/bg.jpg) repeat-x left bottom; color: #303030; margin: 0; - z-index: -3 + z-index: -3; } #Chat { - background: transparent url(images/bg.jpg) repeat-x left bottom; padding: 5px 10px 12px 10px; overflow: hidden; z-index: -2; diff --git a/Modern Bubbling/Contents/Resources/Template.html b/Modern Bubbling/Contents/Resources/Template.html index 539bbe9..bced38f 100644 --- a/Modern Bubbling/Contents/Resources/Template.html +++ b/Modern Bubbling/Contents/Resources/Template.html @@ -296,6 +296,7 @@ if (windowHeight - contentHeight > 0) { contentElement.style.position = 'relative'; contentElement.style.top = (windowHeight - contentHeight) + 'px'; + document.body.style.height = windowHeight + "px"; /* Safari 4 background fix */ } else { contentElement.style.position = 'static'; } diff --git a/Modern Bubbling/Contents/Resources/main.css b/Modern Bubbling/Contents/Resources/main.css index e71d705..7df9fd0 100644 --- a/Modern Bubbling/Contents/Resources/main.css +++ b/Modern Bubbling/Contents/Resources/main.css @@ -26,14 +26,13 @@ body { /* font property used for development only */ /* font: 11px helvetica;*/ - background: #fff; + background: #fff url(images/bg.jpg) repeat-x left bottom; color: #303030; margin: 0; z-index: -3; } #Chat { - background: transparent url(images/bg.jpg) repeat-x left bottom; padding: 5px 10px 12px 10px; overflow: hidden; z-index: -2;