From 6d5f012fe4a9966eb06fa1116abaef6185e5f9db Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 3 Apr 2010 13:13:11 +0000 Subject: [PATCH] do not force same width for all tabs --- lam/lib/modules.inc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 130f914c..f9eb7df3 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1473,12 +1473,6 @@ class accountContainer { * Prints the HTML code of the module tabs. */ private function printModuleTabs() { - // calculate button width - $buttonWidth = 0; - for ($b = 0; $b < sizeof($this->order); $b++) { - $tempWidth = round(0.8 * strlen(utf8_decode($this->module[$this->order[$b]]->get_alias()))) + 2; - if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth; - } // $x is used to count up tabindex $x=0; echo ""; @@ -1490,7 +1484,7 @@ class accountContainer { if ($buttonStatus == 'hidden') continue; $class = $this->type . "list-head"; if ($this->order[$this->current_page] == $this->order[$i]) $class = $this->type . "list-edit"; - echo "
\n"; + echo "\n"; echo "\n"; echo "
order[$i]."')[0].click();\""; echo " align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:5px;\">\n"; @@ -1502,7 +1496,7 @@ class accountContainer { $buttonImageStyle = 'background-image: url(../../graphics/' . $buttonImage . ');background-position: 2px center;background-repeat: no-repeat;height:32px;'; $buttonSpace = '       '; } - $buttonStyle = $buttonImageStyle . 'background-color:transparent;width:' . $buttonWidth . 'em;border:0px solid;'; + $buttonStyle = $buttonImageStyle . 'background-color:transparent;;border:0px solid;'; echo "order[$i]."\" type=\"submit\" value=\""; echo $buttonSpace . $this->module[$this->order[$i]]->get_alias(); echo "\" tabindex=$x";