summaryrefslogtreecommitdiff
path: root/library/WT/Controller/Ancestry.php
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2012-01-31 21:50:29 +0000
committerNigel Osborne <kiwi3685@me.com>2012-01-31 21:50:29 +0000
commita0b06f6f2bacade6fb526a5ac136a503ee89cfb6 (patch)
tree06bd1849e23fb04783f8eb748ed467147baa7e3c /library/WT/Controller/Ancestry.php
parent0cfc0be5c5ae29be3f138ac84f26f4b694717ae5 (diff)
downloadwebtrees-a0b06f6f2bacade6fb526a5ac136a503ee89cfb6.tar.gz
webtrees-a0b06f6f2bacade6fb526a5ac136a503ee89cfb6.tar.bz2
webtrees-a0b06f6f2bacade6fb526a5ac136a503ee89cfb6.zip
Separate dimensions for compact version of boxes from detailed version
Diffstat (limited to 'library/WT/Controller/Ancestry.php')
-rw-r--r--library/WT/Controller/Ancestry.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/WT/Controller/Ancestry.php b/library/WT/Controller/Ancestry.php
index 53a3ef4d6c..35fc6b3656 100644
--- a/library/WT/Controller/Ancestry.php
+++ b/library/WT/Controller/Ancestry.php
@@ -43,7 +43,7 @@ class WT_Controller_Ancestry extends WT_Controller_Chart {
var $cellwidth;
function __construct() {
- global $USE_RIN, $MAX_ALIVE_AGE, $GEDCOM, $bwidth, $bheight, $pbwidth, $pbheight, $PEDIGREE_FULL_DETAILS, $MAX_DESCENDANCY_GENERATIONS;
+ global $USE_RIN, $MAX_ALIVE_AGE, $GEDCOM, $bwidth, $bheight, $cbwidth, $cbheight, $pbwidth, $pbheight, $PEDIGREE_FULL_DETAILS, $MAX_DESCENDANCY_GENERATIONS;
global $DEFAULT_PEDIGREE_GENERATIONS, $PEDIGREE_GENERATIONS, $MAX_PEDIGREE_GENERATIONS, $OLD_PGENS, $box_width, $Dbwidth, $Dbheight;
global $show_full;
@@ -67,10 +67,10 @@ class WT_Controller_Ancestry extends WT_Controller_Chart {
$bwidth=$Dbwidth;
$bheight=$Dbheight;
- // -- adjust size of the non-detailed boxes
+ // -- adjust size of the compact box
if (!$this->show_full) {
- $bwidth = $bwidth - 25;
- $bheight = $bheight - 32;
+ $bwidth = $cbwidth;
+ $bheight = $cbheight;
}
$pbwidth = $bwidth+12;