Skip to content

Commit

Permalink
[checkout] [iframe] Create backward compatible template + Fix frame h…
Browse files Browse the repository at this point in the history
…eight and scrolling issue.
  • Loading branch information
swashata committed Sep 30, 2024
1 parent 7e8c7b1 commit 55b8178
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions templates/checkout.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 1.0.3
*/

fs_require_template( 'checkout/frame.php', $VARS );
2 changes: 1 addition & 1 deletion templates/checkout/frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
});

var updateHeight = function () {
frame.css('min-height', $(document.body).height() + 'px');
frame.css('min-height', Math.max($(document.body).height(), $('#wpwrap').height()) + 'px');
};

$(document).ready(updateHeight);
Expand Down

0 comments on commit 55b8178

Please sign in to comment.