Skip to content

Commit

Permalink
fix(dropdown): correct conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed May 8, 2020
1 parent 4068602 commit a3a790f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/overlay/src/apply-max-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const applyMaxSize = {
);
}
const actualHeight = appliedSizeDefaults.get(state.elements.popper);
const constrainHeight = maxHeight > actualHeight;
const constrainHeight = maxHeight < actualHeight;
const appliedHeight = constrainHeight ? `${maxHeight}px` : '';
state.styles.popper.maxHeight = appliedHeight;
state.styles.popper.height = appliedHeight;
Expand Down

0 comments on commit a3a790f

Please sign in to comment.