mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 19:07:15 +08:00
Fix bottom of billing modal showing a small margin
This commit is contained in:
parent
1194518a4e
commit
3b106f6484
1 changed files with 4 additions and 2 deletions
|
@ -174,10 +174,12 @@ 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
|
||||||
|
window.requestAnimationFrame(() => {
|
||||||
webview.style.bottom = '1px';
|
webview.style.bottom = '1px';
|
||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
webview.style.bottom = '0';
|
webview.style.bottom = '0';
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in a new issue