From 299305ed276892f2170c61b85e392a9098d450c4 Mon Sep 17 00:00:00 2001
From: renato <renato@rezo.net>
Date: Mon, 6 Nov 2006 12:01:39 +0000
Subject: [PATCH] do not center gadgets under their buttons

---
 dist/javascript/presentation.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dist/javascript/presentation.js b/dist/javascript/presentation.js
index 14a5a9915e..7bef7bf1b4 100644
--- a/dist/javascript/presentation.js
+++ b/dist/javascript/presentation.js
@@ -6,7 +6,7 @@ function changestyle(id_couche, element, style) {
 	if (init_gauche) {
 		init_gauche = false;
 		if (bug_offsetwidth) {
-			$('#haut-page').find('div.sous-menu').each(function(){
+			$('#haut-page div.bandeau-principal').find('div.bandeau').each(function(){
 				if (parseInt(this.style.left) > 0) {
 					demilargeur = Math.floor( this.offsetWidth / 2 );
 					if (demilargeur == 0) demilargeur = 100; // bug offsetwidth MSIE, on fixe une valeur arbitraire
@@ -30,7 +30,6 @@ function changestyle(id_couche, element, style) {
 	$('#'+id_couche).css(element||'visibility',style||'visible');
 }
 
-
 var accepter_change_statut = false;
 
 function selec_statut(id, type, decal, puce, script) {
-- 
GitLab