Backport change to wxGrid::OnSize so both subwindow sizes and
scrollars will be adjusted. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6905,15 +6905,11 @@ void wxGrid::Refresh(bool eraseb, const wxRect* rect)
|
|||||||
|
|
||||||
void wxGrid::OnSize( wxSizeEvent& event )
|
void wxGrid::OnSize( wxSizeEvent& event )
|
||||||
{
|
{
|
||||||
// position the child windows
|
// update our children window positions and scrollbars
|
||||||
CalcWindowSizes();
|
CalcDimensions();
|
||||||
|
|
||||||
// don't call CalcDimensions() from here, the base class handles the size
|
|
||||||
// changes itself
|
|
||||||
event.Skip();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGrid::OnKeyDown( wxKeyEvent& event )
|
void wxGrid::OnKeyDown( wxKeyEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
if ( m_inOnKeyDown )
|
if ( m_inOnKeyDown )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user