Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Jun 7, 2023
1 parent e9fc1d1 commit 6beba0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/styles/StyleUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,10 +1154,11 @@ function getEmojiPickerListHeight(hasAdditionalSpace, windowHeight) {
};

if (windowHeight) {
const dim = hasAdditionalSpace ? CONST.EMOJI_PICKER_TEXT_INPUT_SIZES : CONST.EMOJI_PICKER_TEXT_INPUT_SIZES + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT;
// dimensions of content above the emoji picker list
const dimensions = hasAdditionalSpace ? CONST.EMOJI_PICKER_TEXT_INPUT_SIZES : CONST.EMOJI_PICKER_TEXT_INPUT_SIZES + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT;
return {
...style,
maxHeight: windowHeight - dim,
maxHeight: windowHeight - dimensions,
};
}
return style;
Expand Down

0 comments on commit 6beba0b

Please sign in to comment.