Ticket #15047: wxhtml_background_bitmap_scroll_fix.patch

File wxhtml_background_bitmap_scroll_fix.patch, 545 bytes (added by ericj, 5 years ago)
  • src/html/htmlwin.cpp

     
    10901090    if ( m_bmpBg.IsOk() )
    10911091    {
    10921092        // draw the background bitmap tiling it over the entire window area
    1093         const wxSize sz = GetClientSize();
     1093        const wxSize sz = GetVirtualSize();
    10941094        const wxSize sizeBmp(m_bmpBg.GetWidth(), m_bmpBg.GetHeight());
    10951095        for ( wxCoord x = 0; x < sz.x; x += sizeBmp.x )
    10961096        {