Skip to content

Commit

Permalink
fix initial height check.
Browse files Browse the repository at this point in the history
  • Loading branch information
aamir1995 committed Jan 31, 2022
1 parent 5188719 commit 00e2705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00e2705

Please sign in to comment.