diff --git a/src/clamp.ts b/src/clamp.ts index 61f09c0..1668d0a 100644 --- a/src/clamp.ts +++ b/src/clamp.ts @@ -348,7 +348,7 @@ export function clamp(element: Element | HTMLElement, options?: IClampOptions): } } else { const height = getMaxHeight(element, clampValue as number); - if (height <= getElemHeight(element)) { + if (height < getElemHeight(element)) { clamped = truncate( getLastChild(element, options), element,