-#ifndef __WXMSW__
- // VS : this looks extremely ugly under windoze, better fix needed!
- SetScrollbars(1, 1, 0, ClientHeight * 2); // always on
-#endif
- GetClientSize(&ClientWidth, &ClientHeight);
- m_Cell -> Layout(ClientWidth);
- if (ClientHeight < m_Cell -> GetHeight()) {
- SetScrollbars(wxHTML_SCROLL_STEP, wxHTML_SCROLL_STEP,
- m_Cell -> GetWidth() / wxHTML_SCROLL_STEP,
- m_Cell -> GetHeight() / wxHTML_SCROLL_STEP
- /*cheat: top-level frag is always container*/);
+ m_Cell->Layout(ClientWidth);
+ if (ClientHeight < m_Cell->GetHeight() + GetCharHeight())
+ {
+ SetScrollbars(
+ wxHTML_SCROLL_STEP, wxHTML_SCROLL_STEP,
+ m_Cell->GetWidth() / wxHTML_SCROLL_STEP,
+ (m_Cell->GetHeight() + GetCharHeight()) / wxHTML_SCROLL_STEP
+ /*cheat: top-level frag is always container*/);