diff --git a/include/wx/html/htmlwin.h b/include/wx/html/htmlwin.h index 657ee2348d..89117cec8c 100644 --- a/include/wx/html/htmlwin.h +++ b/include/wx/html/htmlwin.h @@ -93,7 +93,7 @@ class WXDLLEXPORT wxHtmlWindow : public wxScrolledWindow // borders (free space between text and window borders) // defaults to 10 pixels. - bool m_Style; + int m_Style; private: diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index b3afd179dc..a149ca56cb 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -249,6 +249,7 @@ void wxHtmlWindow::CreateLayout() if (!m_Cell) return; if (m_Style == wxHW_SCROLLBAR_NEVER) { + SetScrollbars(1, 1, 0, 0); // always off GetClientSize(&ClientWidth, &ClientHeight); m_Cell -> Layout(ClientWidth); }