Finally fixed control scrolling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-06-19 15:08:13 +00:00
parent d993e05b2d
commit 8d1547ef46

View File

@@ -2657,11 +2657,11 @@ void wxWindowMac::ScrollWindow(int dx, int dy, const wxRect *rect)
{
wxRect rc( x, y, w, h );
if (rect->Intersects( rc ))
child->SetSize( x + dx, y + dy, w, h );
child->SetSize( x + dx, y + dy, w, h, wxSIZE_AUTO|wxSIZE_ALLOW_MINUS_ONE );
}
else
{
child->SetSize( x + dx, y + dy, w, h );
child->SetSize( x + dx, y + dy, w, h, wxSIZE_AUTO|wxSIZE_ALLOW_MINUS_ONE );
}
}
}
@@ -2726,7 +2726,7 @@ void wxWindowMac::OnSetFocus( wxFocusEvent& event )
Rect rect ;
m_peer->GetRect( &rect ) ;
// auf den umgebenden Rahmen zurŸck
// auf den umgebenden Rahmen zur<EFBFBD>Ÿck
InsetRect( &rect, -1 , -1 ) ;
wxTopLevelWindowMac* top = MacGetTopLevelWindow();