webview: Fix webview flickering. (#439)

Rewrote styling for the webview so that it takes the whole window
when the app loads up.

Fixes #249.
This commit is contained in:
Akash Nimare
2018-03-09 14:35:13 +05:30
committed by GitHub
parent 603ad7dfcd
commit 435e5f086e
2 changed files with 18 additions and 10 deletions

View File

@@ -130,6 +130,7 @@ class WebView extends BaseComponent {
}
this.$el.classList.remove('disabled');
this.$el.classList.add('active');
setTimeout(() => {
if (this.props.role === 'server') {
this.$el.classList.remove('onload');
@@ -168,6 +169,7 @@ class WebView extends BaseComponent {
hide() {
this.$el.classList.add('disabled');
this.$el.classList.remove('active');
}
load() {