Skip to content

Commit

Permalink
Merge pull request #14 from cerner/height_calc_fix
Browse files Browse the repository at this point in the history
Change height calculation method to max
  • Loading branch information
mhemesath authored Mar 2, 2018
2 parents b5df941 + d8a3c9b commit ef01ea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Next Release
-------------
1.3.2
------
* Updated default height calculation to max to account for dropdowns.


1.3.1
------
* Updated node version to 8.9.2 to support NPM 2FA
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const getWidth = {
min: () => Math.min(...getAllMeasures(getWidth)),
};

export function calculateHeight(calMethod = 'bodyOffset') {
export function calculateHeight(calMethod = 'max') {
if (!(calMethod in getHeight)) {
logger.error(`'${calMethod}' is not a valid method name!`);
}
Expand Down

0 comments on commit ef01ea4

Please sign in to comment.