Skip to content

Commit b793a6a

Browse files
authored
Update default height calculation to bodyScroll (#20)
* Update default height calculation to bodyScroll
1 parent 1fddc27 commit b793a6a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Next Release
22
-------------
3+
1.4.0
4+
------
35
* Added trigger for frame unloading. #18
6+
* Updated default height calucaltion to bodyScroll.
47

58
1.3.2
69
------

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xfc",
3-
"version": "1.3.2",
3+
"version": "1.4.0",
44
"description": "A Cross Frame Container that handles securely embedding web content into a 3rd party domain",
55
"author": "Cerner Corporation",
66
"license": "Apache-2.0",

src/lib/dimension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const getWidth = {
4949
min: () => Math.min(...getAllMeasures(getWidth)),
5050
};
5151

52-
export function calculateHeight(calMethod = 'max') {
52+
export function calculateHeight(calMethod = 'bodyScroll') {
5353
if (!(calMethod in getHeight)) {
5454
logger.error(`'${calMethod}' is not a valid method name!`);
5555
}

0 commit comments

Comments
 (0)