From 59838e8a3c6ac1ea8df510361a0885ea7f604c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 13 May 2003 11:35:26 +0000 Subject: [PATCH] Fix tab attributes when some specified as parameters. --- ChangeLog | 2 ++ libraries/common.lib.php3 | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36df2458d..2c63578c2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ $Source$ * libraries/common.lib.php3: Highlight tab also when current page is read_dump.php3 and $goto is link of current tab. * tbl_replace.php3: Display message after updating row. + * libraries/common.lib.php3: Fix tab attributes when some specified as + parameters. 2003-05-12 Garvin Hicking * queryframe.php3: Remove left/bottom margin to better fit the link title diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 5a6509ded..587055dee 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1689,7 +1689,11 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} $db_details_links_count_tabs++; if (!empty($attr)) { - $attr = ' width="100%" ' . $attr; + if ($cfg['LightTabs']) { + $attr = ' ' . $attr; + } else { + $attr = ' style="display:block" ' . $attr; + } } else { if ($cfg['LightTabs']) { $attr = ' ';