Skip to content

Commit 5583077

Browse files
[DSC-2481] fix truncatable space calc
1 parent c3fcbfe commit 5583077

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shared/truncatable/truncatable-part/truncatable-part.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class TruncatablePartComponent implements AfterViewChecked, OnInit, OnDes
127127
const entry = this.content.nativeElement;
128128
if (entry.scrollHeight > entry.offsetHeight) {
129129
if (entry.children.length > 0) {
130-
if (entry.children[entry.children.length - 1].offsetHeight > entry.offsetHeight) {
130+
if (entry.children[entry.children.length - 1].scrollHeight > entry.offsetHeight) {
131131
entry.classList.add('truncated');
132132
entry.classList.remove('removeFaded');
133133
} else {

0 commit comments

Comments
 (0)