summaryrefslogtreecommitdiff
path: root/fanchart.php
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2011-10-25 00:25:41 +0000
committerNigel Osborne <kiwi3685@me.com>2011-10-25 00:25:41 +0000
commit26fce7f8e5f87fc1b430dabedcf1ac42f561800c (patch)
tree5bc655648cd3ec03568a6468890919a3cfb5270e /fanchart.php
parent7a72cd698d62b2b5c8855f573df4c150d090e553 (diff)
downloadwebtrees-26fce7f8e5f87fc1b430dabedcf1ac42f561800c.tar.gz
webtrees-26fce7f8e5f87fc1b430dabedcf1ac42f561800c.tar.bz2
webtrees-26fce7f8e5f87fc1b430dabedcf1ac42f561800c.zip
Fix for position of title and select box on compact and fan chart
Diffstat (limited to 'fanchart.php')
-rw-r--r--fanchart.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/fanchart.php b/fanchart.php
index 34deea1501..44765eb53d 100644
--- a/fanchart.php
+++ b/fanchart.php
@@ -382,16 +382,18 @@ $rootid = check_rootid($rootid);
$person =WT_Person::getInstance($rootid);
$name =$person->getFullName();
$addname=$person->getAddName();
+$title = /* I18N: http://en.wikipedia.org/wiki/Family_tree#Fan_chart - %s is a person's name */ WT_I18N::translate('Fan chart of %s', $person->getFullName());
// -- print html header information
-print_header(/* I18N: http://en.wikipedia.org/wiki/Family_tree#Fan_chart - %s is a person's name */ WT_I18N::translate('Fan chart of %s', $person->getFullName()));
+print_header($title);
if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm';
-if (strlen($name)<30) $cellwidth="420";
-else $cellwidth=(strlen($name)*14);
+/*if (strlen($title)<30) $cellwidth="420";
+else $cellwidth=(strlen($title)*7);*/
+$cellwidth = max(strlen($title)*4, "420");
echo "<table class=\"list_table $TEXT_DIRECTION\"><tr><td width=\"".$cellwidth."px\" valign=\"top\">";
-echo '<h2>', WT_I18N::translate('Fan chart of %s', $person->getFullName()), '</h2>';
+echo '<h2>', $title, '</h2>';
// -- print the form to change the number of displayed generations
echo WT_JS_START;