From 0b151eb3026c039f5f83375c3843f60c4c514aea Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 14 Dec 2010 19:45:08 +0000 Subject: [PATCH] equal height for vertical tabs and content --- lam/lib/modules.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 55e9a5d8..f181b801 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1293,7 +1293,7 @@ class accountContainer { echo '
'; // tab menu $this->printModuleTabs(); - echo "
\n"; + echo "
\n"; // content area // display html-code from modules $return = call_user_func(array($this->module[$this->order[$this->current_page]], 'display_html_'.$this->subpage)); @@ -1476,6 +1476,15 @@ class accountContainer { primary: 'loadProfileButton' } }); + var maxHeight = 0; + jQuery('.lamEqualHeightTabContent').each(function() { + if (jQuery(this).height() > maxHeight) { + maxHeight = jQuery(this).height(); + }; + }); + jQuery('.lamEqualHeightTabContent').each(function() { + jQuery(this).css({'height': maxHeight}); + }); }); '; + echo '
    '; // Loop for each module for ($i=0; $iorder); $i++ ) { $buttonStatus = $this->module[$this->order[$i]]->getButtonStatus();