Skip to content

Commit

Permalink
Change height calculation method to max
Browse files Browse the repository at this point in the history
  • Loading branch information
mhemesath committed Mar 2, 2018
1 parent b5df941 commit d8a3c9b
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 d8a3c9b

Please sign in to comment.