@@ 413-416 (lines=4) @@ | ||
410 | if ($this->value['bottom'] !== null) { |
|
411 | $y = $this->getLastHeight(true) - $this->value['bottom'] - $this->value['height']; |
|
412 | if ($this->value['margin']['b']) $y -= $this->value['margin']['b']; |
|
413 | } else { |
|
414 | $y = $this->value['top']; |
|
415 | if ($this->value['margin']['t']) $y += $this->value['margin']['t']; |
|
416 | } |
|
417 | ||
418 | if ($this->value['position'] == 'relative') { |
|
419 | $this->value['x'] = $currentX + $x; |
|
@@ 429-429 (lines=1) @@ | ||
426 | $this->value['x'] = $currentX; |
|
427 | $this->value['y'] = $currentY; |
|
428 | if ($this->value['margin']['l']) $this->value['x'] += $this->value['margin']['l']; |
|
429 | if ($this->value['margin']['t']) $this->value['y'] += $this->value['margin']['t']; |
|
430 | } |
|
431 | ||
432 | // save the new position |
|
@@ 1067-1067 (lines=1) @@ | ||
1064 | $return = true; |
|
1065 | ||
1066 | // only for P tag |
|
1067 | if ($this->value['margin']['t'] === null) $this->value['margin']['t'] = $this->value['font-size']; |
|
1068 | if ($this->value['margin']['b'] === null) $this->value['margin']['b'] = $this->value['font-size']; |
|
1069 | ||
1070 | // force the text align to left, if asked by html2pdf |