Skip to content

Commit 701fd1b

Browse files
committed
v 2.1.11
fix subreport margin
1 parent 912b63c commit 701fd1b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
4. added ->debugsql(true)
1010
5. more reliable algorithm to parse `expression`
1111

12+
## 2.1.11
13+
- fix main report left margin not apply to subreport
14+
- fix main report top margin not apply to subreport on band pageHeader
15+
16+
1217
## 2.1.10
1318
- fix sub report parameter cannot recognise
1419

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "simitsdk/phpjasperxml",
33
"description": "PHP PDF renderer of open source jasper report studio.",
4-
"version": "2.1.10",
4+
"version": "2.1.11",
55
"require": {
66
"php": ">=7.4",
77
"tecnickcom/tc-lib-pdf":"*",

src/PHPJasperXML_elements.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ public function draw_subreport(string $uuid,array $prop)
338338
// print_r($prop);
339339
// echo "draw subreport";die;
340340

341+
if($prop['band']=='pageHeader'){
342+
$prop['y']+= $this->pageproperties['topMargin'];
343+
}
344+
$prop['x']+= $this->pageproperties['leftMargin'];
341345

342346
$subreport = new PHPJasperXML();
343347

0 commit comments

Comments
 (0)