From 35776a30a7cf8c5db38f528ad3cffa4fa1bb816a Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 22 Dec 2012 02:31:40 +0100 Subject: [PATCH] add fix for chrome 26 positioning bug on second loading screen, too --- static/js/pandora.js | 2 +- static/js/pandora/home.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index d5dc5247..660aa3d2 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -105,7 +105,7 @@ appPanel gradient.style.bottom = 0; // FIXME: should be 320 and 160 - the values below are temporary fixes for Chrome 26 gradient.style.width = '322px'; - gradient.style.height = '161px'; + gradient.style.height = '162px'; gradient.style.margin = 'auto'; gradient.style.background = theme == 'classic' ? '-moz-linear-gradient(top, rgba(224, 224, 224, 0.75), rgba(224, 224, 224, 1), rgba(224, 224, 224, 1))' diff --git a/static/js/pandora/home.js b/static/js/pandora/home.js index be221934..1d2881fb 100644 --- a/static/js/pandora/home.js +++ b/static/js/pandora/home.js @@ -37,8 +37,9 @@ pandora.ui.home = function() { top: '160px', right: 0, bottom: 0, - width: '320px', - height: '160px', + // FIXME: should be 320 and 160 - the values below are temporary fixes for Chrome 26 + width: '322px', + height: '162px', margin: 'auto', }) .appendTo(that),