diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 8fedf6c999..19c57ef57c 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -338,8 +338,9 @@ bool wxHtmlWindow::Create(wxWindow *parent, wxWindowID id, // at all so disable it to avoid executing any user-defined handlers twice // (and to avoid processing unnecessary event if no handlers are defined). SetBackgroundStyle(wxBG_STYLE_PAINT); - SetPage(wxT("")); + + SetInitialSize(size); return true; }