From c56da0b53049e15aa21858aaa0f823c5107ce4cc Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 6 Nov 2022 18:01:54 +0100 Subject: [PATCH] update height --- .../cashu/templates/cashu/wallet.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/cashu/templates/cashu/wallet.html b/lnbits/extensions/cashu/templates/cashu/wallet.html index 0ddb2f0a..9928b26a 100644 --- a/lnbits/extensions/cashu/templates/cashu/wallet.html +++ b/lnbits/extensions/cashu/templates/cashu/wallet.html @@ -5,7 +5,7 @@ page_container %}
- +
@@ -315,7 +315,7 @@ page_container %} @@ -2161,6 +2161,20 @@ page_container %} } } + var body = document.body, + html = document.documentElement + + var height = Math.max( + body.scrollHeight, + body.offsetHeight, + html.clientHeight, + html.scrollHeight, + html.offsetHeight + ) + + console.log('height', height) + this.height = height + console.log('### invoicesCashu', this.invoicesCashu) console.table('### tokens', this.proofs) console.log('#### this.mintId', this.mintId)