Skip to content

Commit

Permalink
fix(fitHeight): calcFitHeight with fitScreenHeight (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-rr committed Sep 13, 2022
1 parent a4af25c commit 016c4d3
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/core/index.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/cupertino-pane.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Released under the MIT License
*
* Released on: September 11, 2022
* Released on: September 13, 2022
*/

/******************************************************************************
Expand Down Expand Up @@ -1551,6 +1551,10 @@ class FitHeightModule {
}
// Set value for future checks
this.contentElHeight = getHeight(this.instance.el);
// Fit to screen if fitScreenHeight happens
if (getHeight(this.instance.el) > this.instance.screen_height) {
this.contentElHeight = this.instance.screen_height;
}
// Hide elements back
if (!this.instance.rendered) {
this.instance.el.style.visibility = 'unset';
Expand Down
4 changes: 2 additions & 2 deletions dist/cupertino-pane.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.esm.min.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/cupertino-pane.js

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

2 changes: 1 addition & 1 deletion dist/cupertino-pane.js.map

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

4 changes: 2 additions & 2 deletions dist/cupertino-pane.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modules/backdrop.js

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

4 changes: 2 additions & 2 deletions dist/modules/fit-height.js

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

Loading

0 comments on commit 016c4d3

Please sign in to comment.