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
David PHAM-VAN
2021-10-20 08:51:09 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d34a056b0b785b8bf9aaad9130203ad053c0d2d
3d34a056
1 parent
87f7f39a
Simplify test
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
pdf/lib/src/widgets/text.dart
pdf/lib/src/widgets/text.dart
View file @
3d34a05
...
...
@@ -505,13 +505,9 @@ class _Line {
double
get
height
{
final
list
=
parent
.
_spans
.
sublist
(
firstSpan
,
lastSpan
);
if
(
list
.
length
>
0
)
{
return
list
.
reduce
((
a
,
b
)
=>
a
.
height
>
b
.
height
?
a
:
b
)
.
height
;
}
else
{
return
0
;
}
return
list
.
isEmpty
?
0
:
list
.
reduce
((
a
,
b
)
=>
a
.
height
>
b
.
height
?
a
:
b
).
height
;
}
@override
...
...
Please
register
or
login
to post a comment