summaryrefslogtreecommitdiff
path: root/library/WT/Controller/Pedigree.php
diff options
context:
space:
mode:
authorRob Peters <makitso@gmail.com>2011-12-03 14:57:50 +0000
committerRob Peters <makitso@gmail.com>2011-12-03 14:57:50 +0000
commitd9117229c8ba82d3bcdf031fa625bc6f9895c83d (patch)
treec8cbeed04f00567d23c528556ac1da8aa662e923 /library/WT/Controller/Pedigree.php
parent28c2a50804276bc572d323bb3417fb7fdac3c7fd (diff)
downloadwebtrees-d9117229c8ba82d3bcdf031fa625bc6f9895c83d.tar.gz
webtrees-d9117229c8ba82d3bcdf031fa625bc6f9895c83d.tar.bz2
webtrees-d9117229c8ba82d3bcdf031fa625bc6f9895c83d.zip
Set x and y person_box size to theme.php values
Diffstat (limited to 'library/WT/Controller/Pedigree.php')
-rw-r--r--library/WT/Controller/Pedigree.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/library/WT/Controller/Pedigree.php b/library/WT/Controller/Pedigree.php
index 2f33b1ac52..34269437fb 100644
--- a/library/WT/Controller/Pedigree.php
+++ b/library/WT/Controller/Pedigree.php
@@ -73,13 +73,6 @@ class WT_Controller_Pedigree extends WT_Controller_Chart {
global $PEDIGREE_GENERATIONS;
$PEDIGREE_GENERATIONS=$this->PEDIGREE_GENERATIONS;
- // -- Sets the sizes of the boxes
- if (!$this->show_full) $bwidth *= $this->box_width / 150;
- else $bwidth*=$this->box_width/100;
-
- if (!$this->show_full) $bheight = (int)($bheight / 2);
- $bhalfheight = (int)($bheight / 2);
-
// This is passed as a global. A parameter would be better...
$this->show_full = ($this->show_full) ? 1 : 0; // Make SURE this is an integer
if ($this->talloffset>3) {
@@ -103,18 +96,19 @@ class WT_Controller_Pedigree extends WT_Controller_Chart {
//-- adjustments for hide details
if ($this->show_full==false) {
- $bheight=40;
+ $bheight=$bheight/2;
if ($this->talloffset < 2) {
- $bwidth=140;
+ $bwidth=$bwidth/1.5;
}
else {
- $bwidth=140;
+ $bwidth = $bwidth/1.5; //Problem item correct vaoue is -=50 offset #3
+
}
}
//-- adjustments for portrait mode
if ($this->talloffset==0) {
$bxspacing+=12;
- $bwidth+=20;
+ //$bwidth+=20;
$baseyoffset -= 20*($this->PEDIGREE_GENERATIONS-1);
}