Fix bottom of billing modal showing a small margin

This commit is contained in:
Ben Gotow 2018-12-17 15:39:42 -08:00
parent 1194518a4e
commit 3b106f6484

View file

@ -174,9 +174,11 @@ export default class Webview extends React.Component {
this.props.onDidFinishLoad(webview); this.props.onDidFinishLoad(webview);
// tweak the size of the webview to ensure it's contents have laid out // tweak the size of the webview to ensure it's contents have laid out
webview.style.bottom = '1px';
window.requestAnimationFrame(() => { window.requestAnimationFrame(() => {
webview.style.bottom = '0'; webview.style.bottom = '1px';
window.requestAnimationFrame(() => {
webview.style.bottom = '0';
});
}); });
}; };