mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +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,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';
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue