From 3b106f6484b7365f90e62c843a769cc90bccb487 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 17 Dec 2018 15:39:42 -0800 Subject: [PATCH] Fix bottom of billing modal showing a small margin --- app/src/components/webview.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/components/webview.jsx b/app/src/components/webview.jsx index 0037eabae..25ec05fc5 100644 --- a/app/src/components/webview.jsx +++ b/app/src/components/webview.jsx @@ -174,9 +174,11 @@ export default class Webview extends React.Component { this.props.onDidFinishLoad(webview); // tweak the size of the webview to ensure it's contents have laid out - webview.style.bottom = '1px'; window.requestAnimationFrame(() => { - webview.style.bottom = '0'; + webview.style.bottom = '1px'; + window.requestAnimationFrame(() => { + webview.style.bottom = '0'; + }); }); };