Skip to content

Commit

Permalink
Update default height calculation to bodyScroll (#20)
Browse files Browse the repository at this point in the history
* Update default height calculation to bodyScroll
  • Loading branch information
kafkahw authored Mar 22, 2018
1 parent 1fddc27 commit b793a6a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Next Release
-------------
1.4.0
------
* Added trigger for frame unloading. #18
* Updated default height calucaltion to bodyScroll.

1.3.2
------
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xfc",
"version": "1.3.2",
"version": "1.4.0",
"description": "A Cross Frame Container that handles securely embedding web content into a 3rd party domain",
"author": "Cerner Corporation",
"license": "Apache-2.0",
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 = 'max') {
export function calculateHeight(calMethod = 'bodyScroll') {
if (!(calMethod in getHeight)) {
logger.error(`'${calMethod}' is not a valid method name!`);
}
Expand Down

0 comments on commit b793a6a

Please sign in to comment.