don't call SetSize when creating the 2nd toolbar, this just results in unnecessary flicker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -531,8 +531,7 @@ void MyFrame::LayoutChildren()
|
|||||||
int offset;
|
int offset;
|
||||||
if ( m_tbar )
|
if ( m_tbar )
|
||||||
{
|
{
|
||||||
m_tbar->SetSize(wxDefaultCoord, size.y);
|
m_tbar->SetSize(0, 0, wxDefaultCoord, size.y);
|
||||||
m_tbar->Move(0, 0);
|
|
||||||
|
|
||||||
offset = m_tbar->GetSize().x;
|
offset = m_tbar->GetSize().x;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user