Skip to content

Commit

Permalink
Fix WebView height issue on WebViewHelper (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGresse authored Feb 27, 2019
1 parent f7ca704 commit cf6ec81
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ public void updateSlot(final Float ratio) {
if (ratio != null) {
mWebviewHelper.updateSlot(ratio, 0);
}

// After updating the slot the WebView height is not correct, hidding some content in the WebView
mWebview.postDelayed(new Runnable() {
public void run() {
mWebview.requestLayout();
}
}, 300);
}

/**
Expand Down

0 comments on commit cf6ec81

Please sign in to comment.