diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp
index e1afd4d9fd..bddad7e051 100644
--- a/src/html/htmlwin.cpp
+++ b/src/html/htmlwin.cpp
@@ -483,6 +483,7 @@ void wxHtmlWindow::OnSize(wxSizeEvent& event)
{
wxScrolledWindow::OnSize(event);
CreateLayout();
+ Refresh();
}