Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
scottdewald
2022-05-11 22:18:48 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2022-05-14 07:09:34 -0300
Commit
f826df91940488924e4dfd0805794d1b38b41327
f826df91
1 parent
a5b46ed5
Fix for dart_pdf/issues/1028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
pdf/lib/src/widgets/table.dart
pdf/lib/src/widgets/table.dart
View file @
f826df9
...
...
@@ -559,12 +559,12 @@ class Table extends Widget with SpanningWidget {
switch
(
align
)
{
case
TableCellVerticalAlignment
.
bottom
:
childY
=
totalHeight
-
child
.
box
!.
y
-
_
heights
[
heightIndex
]
;
childY
=
totalHeight
-
child
.
box
!.
y
-
_
getHeight
(
heightIndex
)
;
break
;
case
TableCellVerticalAlignment
.
middle
:
childY
=
totalHeight
-
child
.
box
!.
y
-
(
_
heights
[
heightIndex
]
+
child
.
box
!.
height
)
/
2
;
(
_
getHeight
(
heightIndex
)
+
child
.
box
!.
height
)
/
2
;
break
;
case
TableCellVerticalAlignment
.
top
:
case
TableCellVerticalAlignment
.
full
:
...
...
@@ -669,6 +669,10 @@ class Table extends Widget with SpanningWidget {
}
}
double
_getHeight
(
int
heightIndex
)
{
return
(
heightIndex
>=
0
&&
heightIndex
<
_heights
.
length
)
?
_heights
[
heightIndex
]
:
0.0
;
}
static
TextAlign
_textAlign
(
Alignment
align
)
{
if
(
align
.
x
==
0
)
{
return
TextAlign
.
center
;
...
...
Please
register
or
login
to post a comment